mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
700b1c43e9
Previously it always used the global context RequestContext::getMain(), which is basically equivalent to using $wgTitle or $wgUser, and will not produce the correct results when used in other situations than regular web requests (e.g. API requests or jobs). MinervaPagePermissions is required to parse pages (due to the custom section edit links in SkinMinerva::doEditSectionLink), which is often done in API requests or jobs. Pass the appropriate context in SkinMinerva::getPermissions(). This fixes T234868. Note that MinervaPagePermissions is also used elsewhere and I am not fixing those cases. Depends-On: Iaa83e5f801c7776bf8218d8ce7484e2485b227d4 Bug: T234868 Change-Id: I2d6fd525f20a0b6beeeaa731f6b8caa471b8529d |
||
---|---|---|
.. | ||
IMinervaPagePermissions.php | ||
MinervaPagePermissions.php |