Robmoen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/199159

Change subject: Kill onPersonalTools hook as this is being removed on MF
......................................................................

Kill onPersonalTools hook as this is being removed on MF

bug: T93257
Change-Id: I69df0c5f81255903534475a1ae63b26e5c50eb52
---
M Gather.php
M extension.json
M includes/Gather.hooks.php
3 files changed, 0 insertions(+), 29 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather 
refs/changes/59/199159/1

diff --git a/Gather.php b/Gather.php
index 6dbe42c..af3f0ea 100644
--- a/Gather.php
+++ b/Gather.php
@@ -72,7 +72,6 @@
 
 // Hooks
 $wgExtensionFunctions[] = 'Gather\Hooks::onExtensionSetup';
-$wgHooks['MobilePersonalTools'][] = 'Gather\Hooks::onMobilePersonalTools';
 $wgHooks['UnitTestsList'][] = 'Gather\Hooks::onUnitTestsList';
 $wgHooks['SkinMinervaDefaultModules'][] = 
'Gather\Hooks::onSkinMinervaDefaultModules';
 $wgHooks['MakeGlobalVariablesScript'][] = 
'Gather\Hooks::onMakeGlobalVariablesScript';
diff --git a/extension.json b/extension.json
index af7cc62..4b5a107 100644
--- a/extension.json
+++ b/extension.json
@@ -265,9 +265,6 @@
                "remoteExtPath": "Gather"
        },
        "Hooks": {
-               "MobilePersonalTools": [
-                       "Gather\\Hooks::onMobilePersonalTools"
-               ],
                "UnitTestsList": [
                        "Gather\\Hooks::onUnitTestsList"
                ],
diff --git a/includes/Gather.hooks.php b/includes/Gather.hooks.php
index 643e63e..fc14656 100644
--- a/includes/Gather.hooks.php
+++ b/includes/Gather.hooks.php
@@ -63,31 +63,6 @@
        }
 
        /**
-        * Add collections link in personal tools menu
-        * @param array &$items Items array to be added to menu
-        */
-       public static function onMobilePersonalTools( &$items ) {
-               if ( MobileContext::singleton()->isBetaGroupMember() ) {
-                       // Add collections link below watchlist
-                       $itemArray = array_slice( $items, 0, 1, true ) +
-                               array(
-                                       'collections' => array(
-                                               'links' => array(
-                                                       array(
-                                                               'text' => 
wfMessage( 'gather-lists-title' )->escaped(),
-                                                               'href' => 
SpecialPage::getTitleFor( 'Gather' )->getLocalURL(),
-                                                               // FIXME: 
Temporarily watchlist icon
-                                                               'class' => 
CSS::iconClass( 'watchlist', 'before' ),
-                                                       ),
-                                               ),
-                                       ),
-                               ) +
-                               array_slice( $items, 1, count( $items ) - 1, 
true );
-                       $items = $itemArray;
-               }
-       }
-
-       /**
         * UnitTestsList hook handler
         * @see https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList
         *

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69df0c5f81255903534475a1ae63b26e5c50eb52
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>

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

Reply via email to