Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(1.43) Set $wgLocalFileRepo earlier (before RepoGroup is initialized)
Extension:AWS changes $wgLocalFileRepo in replaceLocalRepo(). This is necessary to set public URLs for public/thumb zones. In MediaWiki 1.43, RepoGroup service get initialized much earlier than before, resulting in replaceLocalRepo() being called too late, when LocalRepo is already using the default value of $wgLocalFileRepo (without the correct URLs). Solution is to replaceLocalRepo() earlier, in MediaWikiServices hook (RepoGroup can't exist at this point). This means we can't use PermissionManager service (not available early) to determine if the wiki is public or not. Alternate implementation checks $wgGroupPermissions directly.
- Loading branch information