Follow up r68354. $wgUser *is* used in successfulLogin() and mailPasswordInternal().
authorPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 18:20:21 +0000 (18:20 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 18:20:21 +0000 (18:20 +0000)
includes/specials/SpecialUserlogin.php

index 818a94e..ecabb9f 100644 (file)
@@ -803,7 +803,7 @@ class LoginForm {
         * @private
         */
        function mailPasswordInternal( $u, $throttle = true, $emailTitle = 'passwordremindertitle', $emailText = 'passwordremindertext' ) {
-               global $wgServer, $wgScript, $wgNewPasswordExpiry;
+               global $wgServer, $wgScript, $wgUser, $wgNewPasswordExpiry;
 
                if ( $u->getEmail() == '' ) {
                        return new WikiError( wfMsg( 'noemail', $u->getName() ) );
@@ -838,7 +838,7 @@ class LoginForm {
         * @private
         */
        function successfulLogin() {
-               global $wgOut;
+               global $wgUser, $wgOut;
 
                # Run any hooks; display injected HTML if any, else redirect
                $injected_html = '';