Index: trunk/phase3/skins/common/oldshared.css |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | display: block; |
161 | 161 | color: #005189; |
162 | 162 | } |
163 | | -#prefcontrol { |
| 163 | +.mw-prefs-buttons { |
164 | 164 | clear: left; |
165 | 165 | float: left; |
166 | 166 | margin-top: 1em; |
Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -822,7 +822,16 @@ |
823 | 823 | 'label-message' => 'contextchars', |
824 | 824 | 'section' => 'searchoptions', |
825 | 825 | 'min' => 0, |
826 | | - ); |
| 826 | + ); |
| 827 | + global $wgEnableMWSuggest; |
| 828 | + if ($wgEnableMWSuggest) { |
| 829 | + $defaultPreferences['disablesuggest'] = |
| 830 | + array( |
| 831 | + 'type' => 'toggle', |
| 832 | + 'label-message' => 'mwsuggest-disable', |
| 833 | + 'section' => 'searchoptions', |
| 834 | + ); |
| 835 | + } |
827 | 836 | |
828 | 837 | // Searchable namespaces back-compat with old format |
829 | 838 | $searchableNamespaces = SearchEngine::searchableNamespaces(); |
— | — | @@ -845,16 +854,6 @@ |
846 | 855 | 'section' => 'searchoptions', |
847 | 856 | 'prefix' => 'searchNs', |
848 | 857 | ); |
849 | | - |
850 | | - global $wgEnableMWSuggest; |
851 | | - if ($wgEnableMWSuggest) { |
852 | | - $defaultPreferences['disablesuggest'] = |
853 | | - array( |
854 | | - 'type' => 'toggle', |
855 | | - 'label-message' => 'mwsuggest-disable', |
856 | | - 'section' => 'searchoptions', |
857 | | - ); |
858 | | - } |
859 | 858 | } |
860 | 859 | |
861 | 860 | static function miscPreferences( $user, &$defaultPreferences ) { |
— | — | @@ -1222,6 +1221,8 @@ |
1223 | 1222 | |
1224 | 1223 | $html .= "\n" . $sk->link( $t, wfMsg( 'restoreprefs' ) ); |
1225 | 1224 | |
| 1225 | + $html = Xml::tags( 'div', array( 'class' => 'mw-prefs-buttons' ), $html ); |
| 1226 | + |
1226 | 1227 | return $html; |
1227 | 1228 | } |
1228 | 1229 | |