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

View file

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