Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -803,7 +803,7 @@ |
804 | 804 | * @private |
805 | 805 | */ |
806 | 806 | function mailPasswordInternal( $u, $throttle = true, $emailTitle = 'passwordremindertitle', $emailText = 'passwordremindertext' ) { |
807 | | - global $wgServer, $wgScript, $wgNewPasswordExpiry; |
| 807 | + global $wgServer, $wgScript, $wgUser, $wgNewPasswordExpiry; |
808 | 808 | |
809 | 809 | if ( $u->getEmail() == '' ) { |
810 | 810 | return new WikiError( wfMsg( 'noemail', $u->getName() ) ); |
— | — | @@ -838,7 +838,7 @@ |
839 | 839 | * @private |
840 | 840 | */ |
841 | 841 | function successfulLogin() { |
842 | | - global $wgOut; |
| 842 | + global $wgUser, $wgOut; |
843 | 843 | |
844 | 844 | # Run any hooks; display injected HTML if any, else redirect |
845 | 845 | $injected_html = ''; |