r62782 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62781‎ | r62782 | r62783 >
Date:17:28, 21 February 2010
Author:siebrand
Status:ok
Tags:
Comment:
Partially revert r62774 to prevent PHP Notice: Undefined variable: wgUser in includes/Preferences.php on line 212
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -209,6 +209,7 @@
210210 );
211211
212212 if( $wgAuth->allowPasswordChange() ) {
 213+ global $wgUser; // For skin.
213214 $link = $wgUser->getSkin()->link( SpecialPage::getTitleFor( 'Resetpass' ),
214215 wfMsgHtml( 'prefs-resetpass' ), array(),
215216 array( 'returnto' => SpecialPage::getTitleFor( 'Preferences' ) ) );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62774remove duplicate global definitionsmidom17:03, 21 February 2010

Status & tagging log