fix for r40623: declare $wgUser helps to avoid a fatal error
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 9 Sep 2008 08:51:50 +0000 (08:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 9 Sep 2008 08:51:50 +0000 (08:51 +0000)
includes/specials/SpecialUserlogin.php

index 53b1aa5..c9ce767 100644 (file)
@@ -717,7 +717,7 @@ class LoginForm {
         * Display a "login successful" page.
         */
        private function displaySuccessfulLogin( $msgname, $injected_html ) {
-               global $wgOut;
+               global $wgOut, $wgUser;
 
                $wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) );
                $wgOut->setRobotPolicy( 'noindex,nofollow' );