r49930 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49929‎ | r49930 | r49931 >
Date:05:40, 27 April 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix missing global wgLang
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -14,7 +14,7 @@
1515 * \int Serialized record version.
1616 * @ingroup Constants
1717 */
18 -define( 'MW_USER_VERSION', 7 );
 18+define( 'MW_USER_VERSION', 8 );
1919
2020 /**
2121 * \string Some punctuation to prevent editing from broken text-mangling proxies.
Index: trunk/phase3/includes/Preferences.php
@@ -284,6 +284,8 @@
285285 }
286286
287287 static function emailPreferences( $user, &$defaultPreferences ) {
 288+ global $wgLang;
 289+
288290 ## Email #######################################
289291 ## Email stuff
290292 global $wgEnableEmail, $wgEnableUserEmail, $wgEmailAuthentication;

Status & tagging log