From 178c0e11a58ba8f220e2606f899b4cb7f840196b Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 21 Feb 2010 17:28:13 +0000 Subject: [PATCH] Partially revert r62774 to prevent PHP Notice: Undefined variable: wgUser in includes/Preferences.php on line 212 --- includes/Preferences.php | 1 + 1 file changed, 1 insertion(+) 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' ) ) ); -- 2.20.1