Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -42,8 +42,9 @@ |
43 | 43 | foreach( $defaultPreferences as $name => &$info ) { |
44 | 44 | $prefFromUser = self::getOptionFromUser( $name, $info, $user ); |
45 | 45 | $field = HTMLForm::loadInputFromParameters( $info ); // For validation |
46 | | - $globalDefault = isset($wgDefaultUserOptions[$name]) |
47 | | - ? $wgDefaultUserOptions[$name] |
| 46 | + $defaultOptions = User::getDefaultOptions(); |
| 47 | + $globalDefault = isset($defaultOptions[$name]) |
| 48 | + ? $defaultOptions[$name] |
48 | 49 | : null; |
49 | 50 | |
50 | 51 | // If it validates, set it as the default |