Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -923,6 +923,15 @@ |
924 | 924 | 'section' => 'searchoptions/display', |
925 | 925 | ); |
926 | 926 | } |
| 927 | + |
| 928 | + global $wgVectorUseSimpleSearch; |
| 929 | + if ( $wgVectorUseSimpleSearch ) { |
| 930 | + $defaultPreferences['vector-simplesearch'] = array( |
| 931 | + 'type' => 'toggle', |
| 932 | + 'label-message' => 'vector-simplesearch-preference', |
| 933 | + 'section' => 'searchoptions/display' |
| 934 | + ); |
| 935 | + } |
927 | 936 | |
928 | 937 | $defaultPreferences['searcheverything'] = array( |
929 | 938 | 'type' => 'toggle', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -796,6 +796,7 @@ |
797 | 797 | 'vector-namespace-talk' => 'Discussion', |
798 | 798 | 'vector-namespace-template' => 'Template', |
799 | 799 | 'vector-namespace-user' => 'User page', |
| 800 | +'vector-simplesearch-preference' => 'Enable enhanced search suggestions (Vector skin only)', |
800 | 801 | 'vector-view-create' => 'Create', |
801 | 802 | 'vector-view-edit' => 'Edit', |
802 | 803 | 'vector-view-history' => 'View history', |
Index: trunk/extensions/UsabilityInitiative/Vector/Modules/SimpleSearch/SimpleSearch.i18n.php |
— | — | @@ -14,7 +14,6 @@ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'vector-simplesearch-search' => 'Search', |
17 | 17 | 'vector-simplesearch-containing' => 'containing...', |
18 | | - 'vector-simplesearch-preference' => 'Enable enhanced search suggestions (Vector skin only)', |
19 | 18 | ); |
20 | 19 | |
21 | 20 | /** Message documentation (Message documentation) |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -74,11 +74,6 @@ |
75 | 75 | 'preferences' => array( |
76 | 76 | 'enable' => array( |
77 | 77 | 'key' => 'vector-simplesearch', |
78 | | - 'ui' => array( |
79 | | - 'type' => 'toggle', |
80 | | - 'label-message' => 'vector-simplesearch-preference', |
81 | | - 'section' => 'searchoptions/display' |
82 | | - ), |
83 | 78 | ), |
84 | 79 | 'disablesuggest' => array( |
85 | 80 | 'key' => 'disablesuggest', |