Merge "Languages should not appear in side bar on modern Vector special pages"

This commit is contained in:
jenkins-bot 2021-03-04 00:04:51 +00:00 committed by Gerrit Code Review
commit e827eb0518
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(),