From: Andrew Garrett Date: Mon, 27 Apr 2009 01:49:09 +0000 (+0000) Subject: Implement quickbar settings X-Git-Tag: 1.31.0-rc.0~41992 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=4512a96741006924b8f9eada971726de7d0f49aa;p=lhc%2Fweb%2Fwiklou.git Implement quickbar settings --- diff --git a/includes/Preferences.php b/includes/Preferences.php index 73e982bc14..64e71bcaf1 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -311,7 +311,18 @@ class Preferences { ); } - ## TODO QUICKBAR + $selectedSkin = $user->getOption( 'skin' ); + if ( in_array( $selectedSkin, array( 'cologneblue', 'standard' ) ) ) { + $settings = array_flip($wgLang->getQuickbarSettings()); + + $defaultPreferences['quickbar'] = + array( + 'type' => 'radio', + 'options' => $settings, + 'section' => 'skin', + 'label-message' => 'qbsettings', + ); + } ## Math ##################################### global $wgUseTeX;