mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Merge "Languages should not appear in side bar on modern Vector special pages"
This commit is contained in:
commit
e827eb0518
|
@ -182,6 +182,11 @@ class SkinVector extends SkinMustache {
|
||||||
|
|
||||||
$parentData = parent::getTemplateData();
|
$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, [
|
$commonSkinData = array_merge( $parentData, [
|
||||||
'page-isarticle' => (bool)$out->isArticle(),
|
'page-isarticle' => (bool)$out->isArticle(),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue