mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Languages should not appear in side bar on modern Vector special pages
Follow up to 52edeee
Bug: T273144
Change-Id: I22b33d2090dcd814658ecc2f155d86a5b1791fc3
This commit is contained in:
parent
9bdd6c0130
commit
0d2e38375c
|
@ -182,6 +182,11 @@ class SkinVector extends SkinMustache {
|
|||
|
||||
$parentData = parent::getTemplateData();
|
||||
|
||||
// Remove language from sidebar if in modern Vector and no languages possible.
|
||||
if ( !$this->isLegacy() && !$this->canHaveLanguages() ) {
|
||||
$parentData['data-portlets']['data-languages'] = null;
|
||||
}
|
||||
|
||||
$commonSkinData = array_merge( $parentData, [
|
||||
'page-isarticle' => (bool)$out->isArticle(),
|
||||
|
||||
|
|
Loading…
Reference in a new issue