Umherirrender has uploaded a new change for review.

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

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

Replace deprecated $wgSpecialPageGroups

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

Change-Id: I3fcfbca436ff12ed62f9410f9c52e4a80fe8975d
---
M EtherEditor.php
M includes/special/SpecialEtherEditor.php
2 files changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherEditor 
refs/changes/35/220535/1

diff --git a/EtherEditor.php b/EtherEditor.php
index b4312ad..add49ef 100644
--- a/EtherEditor.php
+++ b/EtherEditor.php
@@ -42,7 +42,6 @@
 }
 
 $wgSpecialPages['EtherEditor'] = 'SpecialEtherEditor';
-$wgSpecialPageGroups['EtherEditor'] = 'pagetools';
 $wgHooks['GetPreferences'][] = 'EtherEditorHooks::getUserPreference';
 
 $wgHooks['UnitTestsList'][] = 'EtherEditorHooks::registerUnitTests';
diff --git a/includes/special/SpecialEtherEditor.php 
b/includes/special/SpecialEtherEditor.php
index 0dc6fd8..d51c720 100644
--- a/includes/special/SpecialEtherEditor.php
+++ b/includes/special/SpecialEtherEditor.php
@@ -134,4 +134,8 @@
                .       '       </div>'
                .       '</div>';
        }
+
+       protected function getGroupName() {
+               return 'pagetools';
+       }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3fcfbca436ff12ed62f9410f9c52e4a80fe8975d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EtherEditor
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

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

Reply via email to