From: Siebrand Mazeland Date: Sun, 21 Feb 2010 17:28:13 +0000 (+0000) Subject: Partially revert r62774 to prevent PHP Notice: Undefined variable: wgUser in include... X-Git-Tag: 1.31.0-rc.0~37667 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=178c0e11a58ba8f220e2606f899b4cb7f840196b;p=lhc%2Fweb%2Fwiklou.git Partially revert r62774 to prevent PHP Notice: Undefined variable: wgUser in includes/Preferences.php on line 212 --- diff --git a/includes/Preferences.php b/includes/Preferences.php index dd36f1b99b..768e3645ad 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -209,6 +209,7 @@ class Preferences { ); if( $wgAuth->allowPasswordChange() ) { + global $wgUser; // For skin. $link = $wgUser->getSkin()->link( SpecialPage::getTitleFor( 'Resetpass' ), wfMsgHtml( 'prefs-resetpass' ), array(), array( 'returnto' => SpecialPage::getTitleFor( 'Preferences' ) ) );