mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 01:09:20 +00:00
Don't show language alert on main page if it has no languages
Bug: T299581 Change-Id: Idc5b702626249ebec5d627e7b88fd6adf3e3750a
This commit is contained in:
parent
5daf29df0d
commit
5d2bc68da1
|
@ -558,7 +558,7 @@ class SkinVector extends SkinMustache {
|
|||
private function shouldLanguageAlertBeInSidebar(): bool {
|
||||
$featureManager = VectorServices::getFeatureManager();
|
||||
$isMainPage = $this->getTitle() ? $this->getTitle()->isMainPage() : false;
|
||||
$shouldShowOnMainPage = $isMainPage &&
|
||||
$shouldShowOnMainPage = $isMainPage && !empty( $this->getLanguagesCached() ) &&
|
||||
$featureManager->isFeatureEnabled( Constants::FEATURE_LANGUAGE_IN_MAIN_PAGE_HEADER );
|
||||
return ( $this->isLanguagesInContentAt( 'top' ) && !$isMainPage &&
|
||||
$featureManager->isFeatureEnabled( Constants::FEATURE_LANGUAGE_ALERT_IN_SIDEBAR ) ) ||
|
||||
|
|
Loading…
Reference in a new issue