Ricordisamoa has uploaded a new change for review.
https://gerrit.wikimedia.org/r/205990
Change subject: Replace deprecated configuration variable $wgSpecialPageGroups
......................................................................
Replace deprecated configuration variable $wgSpecialPageGroups
With the getGroupName() method overridden for SpecialTemplateSandbox.
Also updated extension.json.
Change-Id: I9b8153985e53e0f67a3ec0e9b44498b8d0a7290b
---
M SpecialTemplateSandbox.php
M TemplateSandbox.php
M extension.json
3 files changed, 9 insertions(+), 7 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TemplateSandbox
refs/changes/90/205990/1
diff --git a/SpecialTemplateSandbox.php b/SpecialTemplateSandbox.php
index 2e28cd6..fdf5471 100644
--- a/SpecialTemplateSandbox.php
+++ b/SpecialTemplateSandbox.php
@@ -17,6 +17,10 @@
parent::__construct( 'TemplateSandbox' );
}
+ protected function getGroupName() {
+ return 'wiki';
+ }
+
/**
* @return ScopedCallback to clean up
*/
diff --git a/TemplateSandbox.php b/TemplateSandbox.php
index 84f1812..f81e560 100644
--- a/TemplateSandbox.php
+++ b/TemplateSandbox.php
@@ -59,7 +59,6 @@
$wgExtensionMessagesFiles['TemplateSandbox'] = __DIR__ .
'/TemplateSandbox.i18n.php';
$wgExtensionMessagesFiles['TemplateSandboxAlias'] = __DIR__ .
'/TemplateSandbox.alias.php';
$wgSpecialPages['TemplateSandbox'] = 'SpecialTemplateSandbox';
-$wgSpecialPageGroups['TemplateSandbox'] = 'wiki';
$wgHooks['EditPage::importFormData'][] =
'TemplateSandboxHooks::importFormData';
$wgHooks['EditPage::showStandardInputs:options'][] =
'TemplateSandboxHooks::injectOptions';
$wgHooks['AlternateEditPreview'][] =
'TemplateSandboxHooks::templateSandboxPreview';
diff --git a/extension.json b/extension.json
index 23eea0f..fcac8e6 100644
--- a/extension.json
+++ b/extension.json
@@ -9,9 +9,6 @@
"SpecialPages": {
"TemplateSandbox": "SpecialTemplateSandbox"
},
- "SpecialPageGroups": {
- "TemplateSandbox": "wiki"
- },
"MessagesDirs": {
"TemplateSandbox": [
"i18n"
@@ -28,11 +25,13 @@
"ResourceModules": {
"ext.TemplateSandbox": {
"scripts": "ext.TemplateSandbox.js",
- "position": "bottom",
- "localBasePath": "modules",
- "remoteExtPath": "TemplateSandbox/modules"
+ "position": "bottom"
}
},
+ "ResourceFileModulePaths": {
+ "localBasePath": "modules",
+ "remoteExtPath": "TemplateSandbox/modules"
+ },
"Hooks": {
"EditPage::importFormData": [
"TemplateSandboxHooks::importFormData"
--
To view, visit https://gerrit.wikimedia.org/r/205990
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b8153985e53e0f67a3ec0e9b44498b8d0a7290b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TemplateSandbox
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits