Implement quickbar settings
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Apr 2009 01:49:09 +0000 (01:49 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Apr 2009 01:49:09 +0000 (01:49 +0000)
includes/Preferences.php

index 73e982b..64e71bc 100644 (file)
@@ -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;