dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b87fd87
)
Implement quickbar settings
author
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 27 Apr 2009 01:49:09 +0000
(
01:49
+0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 27 Apr 2009 01:49:09 +0000
(
01:49
+0000)
includes/Preferences.php
patch
|
blob
|
history
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
73e982b
..
64e71bc
100644
(file)
--- 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;