-
-
Notifications
You must be signed in to change notification settings - Fork 30
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)
See issue #85. 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 call 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
1 parent
62b247b
commit ce8701f
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters