Paladox has uploaded a new change for review.

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

Change subject: Add missing message action-confirmaccount
......................................................................

Add missing message action-confirmaccount

* Adds missing message action-confirmaccount

* Converts from space to tabs in en.json.

Change-Id: Id060adc96c8c31bf35ac02c5ceaa9557a4ead774
---
M ConfirmAccount.php
A composer.json
M i18n/confirmaccount/en.json
M i18n/confirmaccount/qqq.json
4 files changed, 15 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount 
refs/changes/27/185627/1

diff --git a/ConfirmAccount.php b/ConfirmAccount.php
index 608ef35..085bed1 100644
--- a/ConfirmAccount.php
+++ b/ConfirmAccount.php
@@ -23,7 +23,7 @@
        exit( 1 ) ;
 }
 
-$wgExtensionCredits['specialpage'][] = array(
+$GLOBALS['wgExtensionCredits']['specialpage'][] = array(
        'path'           => __FILE__,
        'name'           => 'Confirm User Accounts',
        'descriptionmsg' => 'confirmedit-desc',
@@ -42,9 +42,9 @@
 ConfirmAccountUISetup::defineResourceModules( $wgResourceModules );
 
 # Let some users confirm account requests and view credentials for created 
accounts
-$wgAvailableRights[] = 'confirmaccount'; // user can confirm account requests
-$wgAvailableRights[] = 'requestips'; // user can see IPs in request queue
-$wgAvailableRights[] = 'lookupcredentials'; // user can lookup info on 
confirmed users
+$GLOBALS['wgAvailableRights'][] = 'confirmaccount'; // user can confirm 
account requests
+$GLOBALS['wgAvailableRights'][] = 'requestips'; // user can see IPs in request 
queue
+$GLOBALS['wgAvailableRights'][] = 'lookupcredentials'; // user can lookup info 
on confirmed users
 
 # Actually register special pages
 ConfirmAccountUISetup::defineSpecialPages( $wgSpecialPages, 
$wgSpecialPageGroups );
@@ -55,15 +55,15 @@
 ConfirmAccountUISetup::defineHookHandlers( $wgHooks );
 
 # Check for account name collisions
-$wgHooks['AbortNewAccount'][] = 
'ConfirmAccountUIHooks::checkIfAccountNameIsPending';
+$GLOBALS['wgHooks']['AbortNewAccount'][] = 
'ConfirmAccountUIHooks::checkIfAccountNameIsPending';
 
 # Schema changes
-$wgHooks['LoadExtensionSchemaUpdates'][] = 
'ConfirmAccountUpdaterHooks::addSchemaUpdates';
+$GLOBALS['wgHooks']['LoadExtensionSchemaUpdates'][] = 
'ConfirmAccountUpdaterHooks::addSchemaUpdates';
 
 # ####### END HOOK CALLBACK FUNCTIONS #########
 
 # Load the extension after setup is finished
-$wgExtensionFunctions[] = 'efLoadConfirmAccount';
+$GLOBALS['wgExtensionFunctions'][] = 'efLoadConfirmAccount';
 
 /**
  * This function is for setup that has to happen in Setup.php
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..b04332e
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,4 @@
+{
+       "name": "mediawiki/confirmaccount",
+       "description": "Gives bureaucrats the ability to confirm account 
requests",
+}
\ No newline at end of file
diff --git a/i18n/confirmaccount/en.json b/i18n/confirmaccount/en.json
index 290d31a..7bc8968 100644
--- a/i18n/confirmaccount/en.json
+++ b/i18n/confirmaccount/en.json
@@ -80,5 +80,6 @@
     "confirmaccount-email-body2": "Your request for an account has been 
approved on {{SITENAME}}.\n\nAccount name: $1\n\nPassword: $2\n\n$3\n\nFor 
security reasons you will need to change your password on first login.\nTo 
login, please go to {{fullurl:Special:UserLogin}}.",
     "confirmaccount-email-body3": "Sorry, your request for an account \"$1\" 
has been rejected on {{SITENAME}}.\n\nThere are several ways this can 
happen.\nYou may not have filled out the form correctly, did not provide 
adequate length in your responses, or otherwise failed to meet some policy 
criteria.\nThere may be contact lists on site that you can use if you want to 
know more about user account policy.",
     "confirmaccount-email-body4": "Sorry, your request for an account \"$1\" 
has been rejected on {{SITENAME}}.\n\n$2\n\nThere may be contact lists on site 
that you can use if you want to know more about user account policy.",
-    "confirmaccount-email-body5": "Before your request for an account \"$1\" 
can be accepted on {{SITENAME}} you must first provide some additional 
information.\n\n$2\n\nThere may be contact lists on site that you can use if 
you want to know more about user account policy."
+    "confirmaccount-email-body5": "Before your request for an account \"$1\" 
can be accepted on {{SITENAME}} you must first provide some additional 
information.\n\n$2\n\nThere may be contact lists on site that you can use if 
you want to know more about user account policy.",
+    "action-confirmaccount": "review and accept accounts"
 }
diff --git a/i18n/confirmaccount/qqq.json b/i18n/confirmaccount/qqq.json
index d694749..034f78e 100644
--- a/i18n/confirmaccount/qqq.json
+++ b/i18n/confirmaccount/qqq.json
@@ -91,5 +91,6 @@
        "confirmaccount-email-body2": "Used as email body. Parameters:\n* $1 - 
username\n* $2 - initial password\n* $3 - reason\nThe email subject is 
{{msg-mw|Confirmaccount-email-subj}}.\n{{Identical|Your request for an account 
...}}",
        "confirmaccount-email-body3": "This message is sent as an email to 
users when their account request has been denied by a 
bureaucrat.\n\nParameters:\n* $1 - the requested account name\nThe email 
subject is {{msg-mw|Confirmaccount-email-subj}}.",
        "confirmaccount-email-body4": "This message is sent as an email to 
users when their account request has been denied by a 
bureaucrat.\n\nParameters:\n* $1 - the requested account name\n* $2 - a comment 
written by the bureaucrat\nThe email subject is 
{{msg-mw|Confirmaccount-email-subj}}.",
-       "confirmaccount-email-body5": "This message is sent as an email to 
users when their account request has been held by a 
bureaucrat.\n\nParameters:\n* $1 - the requested account name\n* $2 - the 
reason\nThe email subject is {{msg-mw|Confirmaccount-email-subj}}."
+       "confirmaccount-email-body5": "This message is sent as an email to 
users when their account request has been held by a 
bureaucrat.\n\nParameters:\n* $1 - the requested account name\n* $2 - the 
reason\nThe email subject is {{msg-mw|Confirmaccount-email-subj}}.",
+       "action-confirmaccount": "{{doc-action|globalblock}}"
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id060adc96c8c31bf35ac02c5ceaa9557a4ead774
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

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

Reply via email to