mediawiki-skins-MinervaNeue/includes/skins
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
..
banners.mustache
footer.mustache Add DataAfterContent to footer (SkinAfterContent hook) 2019-06-20 01:49:05 +00:00
history.mustache Replace .content class with .post-content on last modified bar 2019-12-05 21:01:23 +00:00
menu.mustache Main menu button works without JS 2019-12-19 19:55:39 +00:00
menuGroup.mustache MainMenu is a controller not a View and server rendered (take 2) 2019-10-29 16:37:04 -07:00
minerva.mustache Fix: user navigation label when AMC is disabled 2020-01-10 15:23:04 -07:00
MinervaTemplate.php Fix: user navigation label when AMC is disabled 2020-01-10 15:23:04 -07:00
SkinMinerva.php Allow passing context to MinervaPagePermissions 2020-01-29 10:33:36 -08:00
SkinUserPageHelper.php Hygiene: SkinUserPageHelper should support Title = null 2019-06-04 17:17:58 +02:00