Revision: 51653 Author: werdna Date: 2009-06-09 17:32:33 +0000 (Tue, 09 Jun 2009)
Log Message: ----------- Fix default check for preferences Modified Paths: -------------- trunk/phase3/includes/Preferences.php Modified: trunk/phase3/includes/Preferences.php =================================================================== --- trunk/phase3/includes/Preferences.php 2009-06-09 17:30:11 UTC (rev 51652) +++ trunk/phase3/includes/Preferences.php 2009-06-09 17:32:33 UTC (rev 51653) @@ -42,8 +42,9 @@ foreach( $defaultPreferences as $name => &$info ) { $prefFromUser = self::getOptionFromUser( $name, $info, $user ); $field = HTMLForm::loadInputFromParameters( $info ); // For validation - $globalDefault = isset($wgDefaultUserOptions[$name]) - ? $wgDefaultUserOptions[$name] + $defaultOptions = User::getDefaultOptions(); + $globalDefault = isset($defaultOptions[$name]) + ? $defaultOptions[$name] : null; // If it validates, set it as the default _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs