Ricordisamoa has uploaded a new change for review.

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

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

Replace deprecated configuration variable $wgSpecialPageGroups

With the getGroupName() method overridden for SpecialApiSandbox.

Change-Id: I9d25930fbce6342eea1ff4589380ba269a0a7f5f
---
M ApiSandbox.php
M SpecialApiSandbox.php
M extension.json
3 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox 
refs/changes/85/205985/1

diff --git a/ApiSandbox.php b/ApiSandbox.php
index be7bf9f..8774c2e 100644
--- a/ApiSandbox.php
+++ b/ApiSandbox.php
@@ -22,7 +22,6 @@
 $wgAutoloadClasses['ApiSandboxHooks'] = __DIR__ . '/ApiSandbox.hooks.php';
 
 $wgSpecialPages['ApiSandbox'] = 'SpecialApiSandbox';
-$wgSpecialPageGroups['ApiSandbox'] = 'wiki';
 
 $wgResourceModules['ext.apiSandbox'] = array(
        'scripts' => array(
diff --git a/SpecialApiSandbox.php b/SpecialApiSandbox.php
index 2ee8d63..e0ab433 100644
--- a/SpecialApiSandbox.php
+++ b/SpecialApiSandbox.php
@@ -13,6 +13,10 @@
                parent::__construct( 'ApiSandbox' );
        }
 
+       protected function getGroupName() {
+               return 'wiki';
+       }
+
        /**
         * Main execution function
         * @param $par string|null Parameters passed to the page
diff --git a/extension.json b/extension.json
index 17d3457..c79f409 100644
--- a/extension.json
+++ b/extension.json
@@ -57,9 +57,6 @@
                "localBasePath": "resources",
                "remoteExtPath": "ApiSandbox/resources"
        },
-       "SpecialPageGroups": {
-               "ApiSandbox": "wiki"
-       },
        "SpecialPages": {
                "ApiSandbox": "SpecialApiSandbox"
        },

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d25930fbce6342eea1ff4589380ba269a0a7f5f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisa...@openmailbox.org>

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

Reply via email to