mediawiki-skins-MinervaNeue/includes
Bartosz Dziewoński 700b1c43e9 Allow passing context to MinervaPagePermissions
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
2020-01-29 10:33:36 -08:00
..
menu Merge "Escape HTML in toolbar menu" 2020-01-29 05:29:11 +00:00
permissions Allow passing context to MinervaPagePermissions 2020-01-29 10:33:36 -08:00
skins Allow passing context to MinervaPagePermissions 2020-01-29 10:33:36 -08:00
LanguagesHelper.php Extract language/variants check to a service 2019-07-16 19:53:57 +00:00
MinervaHooks.php Make MobileFrontend dependency a soft one 2020-01-17 14:02:23 -08:00
MinervaUI.php Allow null on MinervaUI::iconClass 2019-12-30 17:26:31 +01:00
ResourceLoaderLessVarFileModule.php Add GPL file header to PHP classes 2018-04-15 16:23:10 -07:00
ServiceWiring.php Allow passing context to MinervaPagePermissions 2020-01-29 10:33:36 -08:00
SkinOptions.php Discontinue back-to-top feature 2019-12-11 05:12:43 +00:00