Index: branches/happy-melon/phase3/includes/Login.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | public function attemptLogin(){ |
98 | 98 | |
99 | 99 | $code = $this->authenticateUserData(); |
100 | | - if( $code != self::SUCCESS ){ |
| 100 | + if( $code !== self::SUCCESS ){ |
101 | 101 | return $code; |
102 | 102 | } |
103 | 103 | |
— | — | @@ -482,7 +482,7 @@ |
483 | 483 | : self::SUCCESS; |
484 | 484 | } |
485 | 485 | } |
486 | | - return true; |
| 486 | + return self::SUCCESS; |
487 | 487 | } |
488 | 488 | |
489 | 489 | /** |
Index: branches/happy-melon/phase3/includes/specials/SpecialCreateAccount.php |
— | — | @@ -249,7 +249,7 @@ |
250 | 250 | global $wgOut; |
251 | 251 | $self = SpecialPage::getTitleFor( 'Userlogin' ); |
252 | 252 | $wgOut->setPageTitle( wfMsgHtml( 'accountcreated' ) ); |
253 | | - $wgOut->addHTML( wfMsgWikiHtml( 'accountcreatedtext', $this->mLogin->mUser->getName() ) ); |
| 253 | + $wgOut->addWikiMsg( 'accountcreatedtext', $this->mLogin->mUser->getName() ); |
254 | 254 | $wgOut->returnToMain( false, $self ); |
255 | 255 | return true; |
256 | 256 | } |