diff --git a/includes/SkinVector.php b/includes/SkinVector.php index 92978c83f..5f2a33e01 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -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(),