Index: trunk/extensions/ConfirmAccount/dataclasses/ConfirmAccount.class.php |
— | — | @@ -124,10 +124,10 @@ |
125 | 125 | /** |
126 | 126 | * Get a request name from an email confirmation token |
127 | 127 | * |
128 | | - * @param sring $code |
| 128 | + * @param $code string |
129 | 129 | * @return string|false |
130 | 130 | */ |
131 | | - public function requestNameFromEmailToken( $code ) { |
| 131 | + public static function requestNameFromEmailToken( $code ) { |
132 | 132 | $dbr = wfGetDB( DB_SLAVE ); |
133 | 133 | return $dbr->selectField( 'account_requests', |
134 | 134 | 'acr_name', |
Index: trunk/extensions/ConfirmAccount/presentation/specialpages/actions/RequestAccount_body.php |
— | — | @@ -325,7 +325,7 @@ |
326 | 326 | $reqUser = $this->getUser(); |
327 | 327 | $out = $this->getOutput(); |
328 | 328 | # Confirm if this token is in the pending requests |
329 | | - $name = ConfirmAccount::requestNameFromEmailToken( $code ); // FIXME: This method isn't static |
| 329 | + $name = ConfirmAccount::requestNameFromEmailToken( $code ); |
330 | 330 | if ( $name !== false ) { |
331 | 331 | # Send confirmation email to prospective user |
332 | 332 | ConfirmAccount::confirmEmail( $name ); |