Umherirrender has uploaded a new change for review.

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

Change subject: Replace deprecated $wgSpecialPageGroups
......................................................................

Replace deprecated $wgSpecialPageGroups

$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead

Change-Id: I355ace367c7a744677b404c30e077cb3408ebca2
---
M CentralNotice.hooks.php
M special/SpecialCentralNotice.php
2 files changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/87/211387/1

diff --git a/CentralNotice.hooks.php b/CentralNotice.hooks.php
index 60fb03a..240da9e 100644
--- a/CentralNotice.hooks.php
+++ b/CentralNotice.hooks.php
@@ -36,7 +36,7 @@
  */
 function efCentralNoticeSetup() {
        global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, 
$wgSpecialPages,
-                  $wgCentralNoticeLoader, $wgSpecialPageGroups, $wgScript,
+                  $wgCentralNoticeLoader, $wgScript,
                   $wgNoticeUseTranslateExtension, $wgAPIModules, 
$wgAPIListModules,
                   $wgAvailableRights, $wgGroupPermissions, $wgCentralDBname, 
$wgDBname;
 
@@ -154,7 +154,6 @@
                }
 
                $wgSpecialPages[ 'CentralNotice' ] = 'CentralNotice';
-               $wgSpecialPageGroups[ 'CentralNotice' ] = 'wiki'; // Wiki data 
and tools
                $wgSpecialPages[ 'NoticeTemplate' ] = 'SpecialNoticeTemplate';
                $wgSpecialPages[ 'GlobalAllocation' ] = 
'SpecialGlobalAllocation';
                $wgSpecialPages[ 'BannerAllocation' ] = 
'SpecialBannerAllocation';
diff --git a/special/SpecialCentralNotice.php b/special/SpecialCentralNotice.php
index c25584d..94a9022 100644
--- a/special/SpecialCentralNotice.php
+++ b/special/SpecialCentralNotice.php
@@ -1484,4 +1484,8 @@
                }
                return $this->getContext()->getLanguage()->listToText( 
array_values( $list ) );
        }
+
+       protected function getGroupName() {
+               return 'wiki';
+       }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I355ace367c7a744677b404c30e077cb3408ebca2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to