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:
jdlrobson 2021-03-02 09:01:55 -08:00 committed by Jdlrobson
parent 9bdd6c0130
commit 0d2e38375c
1 changed files with 5 additions and 0 deletions

View File

@ -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(),