Index: trunk/extensions/SignupAPI/includes/SpecialUserSignup.php |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | # Send out an email authentication message if needed |
208 | 208 | if( $wgEmailAuthentication && User::isValidEmailAddr( $mUser->getEmail() ) ) { |
209 | 209 | $status = $mUser->sendConfirmationMail(); |
210 | | - if( $status==1 ) { |
| 210 | + if( $status->isGood() ) { |
211 | 211 | $wgOut->addWikiMsg( 'confirmemail_oncreate' ); |
212 | 212 | } else { |
213 | 213 | $wgOut->addWikiText( $status->getWikiText( 'confirmemail_sendfailed' ) ); |
— | — | @@ -336,7 +336,7 @@ |
337 | 337 | # if email is provided then validate it |
338 | 338 | if( !empty( $this->mEmail ) && !Sanitizer::validateEmail( $this->mEmail ) ) { |
339 | 339 | return self::INVALID_EMAIL; |
340 | | - } |
| 340 | + } |
341 | 341 | |
342 | 342 | # Set some additional data so the AbortNewAccount hook can be used for |
343 | 343 | # more than just username validation |