mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
Merge "Enable pinning for anon main menu when page tools is enabled"
This commit is contained in:
commit
62251d1077
|
@ -51,9 +51,6 @@ class VectorComponentMainMenu implements VectorComponent {
|
|||
$this->localizer = $localizer;
|
||||
$this->isPinned = $featureManager->isFeatureEnabled( Constants::FEATURE_MAIN_MENU_PINNED );
|
||||
|
||||
if ( $user->isRegistered() ) {
|
||||
$this->optOut = new VectorComponentMainMenuActionOptOut( $skin );
|
||||
|
||||
$isPageToolsEnabled = $featureManager->isFeatureEnabled( Constants::FEATURE_PAGE_TOOLS );
|
||||
if ( $isPageToolsEnabled ) {
|
||||
$this->pinnableHeader = new VectorComponentPinnableHeader(
|
||||
|
@ -63,6 +60,8 @@ class VectorComponentMainMenu implements VectorComponent {
|
|||
'main-menu-pinned'
|
||||
);
|
||||
}
|
||||
if ( $user->isRegistered() ) {
|
||||
$this->optOut = new VectorComponentMainMenuActionOptOut( $skin );
|
||||
}
|
||||
if ( $shouldLanguageAlertBeInSidebar ) {
|
||||
$this->alert = new VectorComponentMainMenuActionLanguageSwitchAlert( $skin );
|
||||
|
|
Loading…
Reference in a new issue