diff --git a/ConfirmAccount/business/AccountConfirmSubmission.php b/ConfirmAccount/business/AccountConfirmSubmission.php index ddd2c19..f0af483 100644 --- a/ConfirmAccount/business/AccountConfirmSubmission.php +++ b/ConfirmAccount/business/AccountConfirmSubmission.php @@ -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() diff --git a/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php b/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php index fffa883..84c3db0 100644 --- a/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php +++ b/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php @@ -65,10 +65,10 @@ class ConfirmAccountUIHooks { return true; } $count = ConfirmAccount::getOpenRequestCount( '*' ); - if ( $count > 0 ) { + if ( sizeof($count['open']) > 0 ) { $out->prependHtml( '' ); diff --git a/ConfirmAccount/frontend/language/ConfirmAccountPage.i18n.php b/ConfirmAccount/frontend/language/ConfirmAccountPage.i18n.php index 7ca3638..3e9ed71 100644 --- a/ConfirmAccount/frontend/language/ConfirmAccountPage.i18n.php +++ b/ConfirmAccount/frontend/language/ConfirmAccountPage.i18n.php @@ -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.',