Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/302830
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
(cherry picked from commit b1433044e0567c6ccb3c54a2a5200a0249d7eeb9)
---
M includes/skins/SkinMinervaBeta.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/30/302830/1
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/302830
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If3c2fbe22428fe1b331f08602b0505b179a9b101
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: wmf/1.28.0-wmf.13
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits