jenkins-bot has submitted this change and it was merged.

Change subject: Do not output the 'switch language' action on Main Page in beta
......................................................................


Do not output the 'switch language' action on Main Page in beta

All page actions are hidden on the Main Page. No need to output the
alternative language switcher button either as this interferes with
the language button that's at the bottom of the page, which triggers
a tooltip when the alternative button is available on the page.

Bug: T142016
Change-Id: If3c2fbe22428fe1b331f08602b0505b179a9b101
---
M includes/skins/SkinMinervaBeta.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/skins/SkinMinervaBeta.php 
b/includes/skins/SkinMinervaBeta.php
index 812ea1d..353cc1c 100644
--- a/includes/skins/SkinMinervaBeta.php
+++ b/includes/skins/SkinMinervaBeta.php
@@ -20,7 +20,8 @@
         * @inheritdoc
         */
        protected function isAllowedPageAction( $action ) {
-               return $action === 'switch-language' ? true : 
parent::isAllowedPageAction( $action );
+               return !$this->getTitle()->isMainPage() && $action === 
'switch-language' ?
+                       true : parent::isAllowedPageAction( $action );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/302823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If3c2fbe22428fe1b331f08602b0505b179a9b101
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to