From: Andrew Garrett Date: Mon, 27 Apr 2009 05:43:53 +0000 (+0000) Subject: Fix preferences for sites with math enabled X-Git-Tag: 1.31.0-rc.0~41986 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=ee35fe055d4ef077fa67915f18d4d8c8d86c74e2;p=lhc%2Fweb%2Fwiklou.git Fix preferences for sites with math enabled --- diff --git a/includes/Preferences.php b/includes/Preferences.php index 7baf30837b..ffa94bad64 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -398,7 +398,7 @@ class Preferences { static function mathPreferences( $user, &$defaultPreferences ) { ## Math ##################################### - global $wgUseTeX; + global $wgUseTeX, $wgLang; if ($wgUseTeX) { $defaultPreferences['math'] = array(