mirror of
https://github.com/scratchfoundation/swiki-confirmaccount.git
synced 2024-12-04 21:01:02 -05:00
proper counting of requests in RC
This commit is contained in:
parent
2f103ae972
commit
d2fd954b97
3 changed files with 3 additions and 7 deletions
|
@ -446,7 +446,7 @@ class AccountConfirmSubmission {
|
|||
global $wgAutoWelcomeNewUsers;
|
||||
|
||||
if ( $wgAutoWelcomeNewUsers ) {
|
||||
if ($this->reason == '') {
|
||||
if (trim($this->reason) == '') {
|
||||
$msg = "confirmaccount-welc-pos{$this->type}";
|
||||
$welcome = wfEmptyMsg( $msg )
|
||||
? wfMessage( 'confirmaccount-welc' )->text()
|
||||
|
|
|
@ -65,10 +65,10 @@ class ConfirmAccountUIHooks {
|
|||
return true;
|
||||
}
|
||||
$count = ConfirmAccount::getOpenRequestCount( '*' );
|
||||
if ( $count > 0 ) {
|
||||
if ( sizeof($count['open']) > 0 ) {
|
||||
$out->prependHtml(
|
||||
'<div id="mw-confirmaccount-msg" class="plainlinks mw-confirmaccount-bar">' .
|
||||
$context->msg( 'confirmaccount-newrequests' )->numParams( $count )->parse() .
|
||||
$context->msg( 'confirmaccount-newrequests' )->numParams( $count['open'] )->parse() .
|
||||
'</div>'
|
||||
);
|
||||
|
||||
|
|
|
@ -28,10 +28,6 @@ They can still be approved into accounts.',
|
|||
'confirmaccount-text' => 'This is a pending request for a user account at \'\'\'{{SITENAME}}\'\'\'.
|
||||
|
||||
Carefully review the below information.
|
||||
If you are approving this request, use the position dropdown to set the account status of the user.
|
||||
Edits made to the application biography will not affect any permanent credential storage.
|
||||
Note that you can choose to create the account under a different username.
|
||||
Use this only to avoid collisions with other names.
|
||||
|
||||
If you simply leave this page without confirming or denying this request, it will remain pending.',
|
||||
'confirmaccount-none-o' => 'There are currently no open pending account requests in this list.',
|
||||
|
|
Loading…
Reference in a new issue