Reedy has uploaded a new change for review.

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

Change subject: Revert BlockAndNuke to manifest_version_1
......................................................................

Revert BlockAndNuke to manifest_version_1

Bug: T149759
Change-Id: I7e2d6506e0972eabd4b93733b8d65a8824584aa7
(cherry picked from commit 88a7da38a81fce536ac5a21d16a2b910364c9a91)
---
M BlockAndNuke.hooks.php
M extension.json
2 files changed, 11 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlockAndNuke 
refs/changes/29/319729/1

diff --git a/BlockAndNuke.hooks.php b/BlockAndNuke.hooks.php
index 8730b3b..a71f8e4 100644
--- a/BlockAndNuke.hooks.php
+++ b/BlockAndNuke.hooks.php
@@ -8,4 +8,11 @@
        public static function onLanguageGetSpecialPageAliases( 
&$specialPageAliases, $langCode ) {
                $specialPageAliases['blockandnuke'] = array( 'BlockandNuke' );
        }
+
+       public static function onRegistration() {
+               global $wgBaNwhitelist;
+               if ( $wgBaNwhitelist === null ) {
+                       $wgBaNwhitelist = __DIR__ . '/whitelist.txt';
+               }
+       }
 }
\ No newline at end of file
diff --git a/extension.json b/extension.json
index 40ef5b6..91345d8 100644
--- a/extension.json
+++ b/extension.json
@@ -8,6 +8,7 @@
        "descriptionmsg": "blockandnuke-desc",
        "license-name": "GPL-3.0+",
        "type": "specialpage",
+       "callback": "BlockAndNukeHooks::onRegistration",
        "GroupPermissions": {
                "sysop": {
                        "blockandnuke": true
@@ -34,13 +35,8 @@
                "LanguageGetSpecialPageAliases": 
"BlockAndNukeHooks::onLanguageGetSpecialPageAliases"
        },
        "config": {
-               "BaNwhitelist": {
-                       "value": "whitelist.txt",
-                       "path": true
-               },
-               "BaNSpamUser": {
-                       "value": "Spammer"
-               }
+               "BaNwhitelist": null,
+               "BaNSpamUser": "Spammer"
        },
-       "manifest_version": 2
+       "manifest_version": 1
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e2d6506e0972eabd4b93733b8d65a8824584aa7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlockAndNuke
Gerrit-Branch: REL1_28
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: MtDu <[email protected]>

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

Reply via email to