X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPreferences.php;h=65a0d0291b73e8acaa129864072340393350dc7d;hb=8720241703a0ee05145bcbeed7b8f3384f5f4bc8;hp=eaf781bb7f2bf058bdb81341beadad1dad22c08d;hpb=eeb7300f6004e95620514eb9bac508425e94f197;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Preferences.php b/includes/Preferences.php index eaf781bb7f..65a0d0291b 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -879,7 +879,7 @@ class Preferences { global $wgUseRCPatrol, $wgEnableAPI, $wgRCMaxAge; $watchlistdaysMax = ceil( $wgRCMaxAge / ( 3600 * 24 ) ); - + ## Watchlist ##################################### $defaultPreferences['watchlistdays'] = array( 'type' => 'float', @@ -978,7 +978,7 @@ class Preferences { * @param $defaultPreferences Array */ static function searchPreferences( $user, IContextSource $context, &$defaultPreferences ) { - global $wgContLang, $wgEnableMWSuggest, $wgVectorUseSimpleSearch; + global $wgContLang, $wgVectorUseSimpleSearch; ## Search ##################################### $defaultPreferences['searchlimit'] = array( @@ -988,22 +988,21 @@ class Preferences { 'min' => 0, ); - if ( $wgEnableMWSuggest ) { - $defaultPreferences['disablesuggest'] = array( - 'type' => 'toggle', - 'label-message' => 'mwsuggest-disable', - 'section' => 'searchoptions/displaysearchoptions', - ); - } if ( $wgVectorUseSimpleSearch ) { $defaultPreferences['vector-simplesearch'] = array( 'type' => 'toggle', 'label-message' => 'vector-simplesearch-preference', - 'section' => 'searchoptions/displaysearchoptions' + 'section' => 'searchoptions/displaysearchoptions', ); } + $defaultPreferences['disablesuggest'] = array( + 'type' => 'toggle', + 'label-message' => 'mwsuggest-disable', + 'section' => 'searchoptions/displaysearchoptions', + ); + $defaultPreferences['searcheverything'] = array( 'type' => 'toggle', 'label-message' => 'searcheverything-enable',