mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
Minerva should source mobile license without indirection
Rather than rely on something being set on MinervaTemplate go straight to the source of the license message This change will allow us to deprecate usage of SkinTemplateOutputPageBeforeExec inside MobileFrontend Bug: T60137 Depends-On: Id83ef2f2cba1dce940f89125b5cd26a29421ee48 Change-Id: I5317cd707418350847085d406c3749f19106d6ba
This commit is contained in:
parent
9b6cb1fbb8
commit
9118f25a5e
|
@ -88,12 +88,14 @@ class MinervaTemplate extends BaseTemplate {
|
|||
}
|
||||
|
||||
// This turns off the footer id and allows us to distinguish the old footer with the new design
|
||||
|
||||
return [
|
||||
'lastmodified' => $this->getHistoryLinkHtml( $data ),
|
||||
'headinghtml' => $data['footer-site-heading-html'],
|
||||
// Note mobile-license is only available on the mobile skin. It is outputted as part of
|
||||
// footer-info on desktop hence the conditional check.
|
||||
'licensehtml' => $data['mobile-license'] ?? '',
|
||||
'licensehtml' => ExtensionRegistry::getInstance()->isLoaded( 'MobileFrontend' ) ?
|
||||
MobileFrontendSkinHooks::getLicenseText( $this->getSkin() ) : '',
|
||||
'lists' => $groups,
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue