/**
* Enable suggestions while typing in search boxes
* (results are passed around in OpenSearch format)
+ * Requires $wgEnableOpenSearchSuggest = true;
*/
$wgEnableMWSuggest = false;
+/**
+ * Enable OpenSearch suggestions requested by MediaWiki. Set this to
+ * false if you've disabled MWSuggest or another suggestion script and
+ * want reduce load caused by cached scripts pulling suggestions.
+ */
+$wgEnableOpenSearchSuggest = true;
+
/**
* Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
*
$namespaces = $params['namespace'];
$suggest = $params['suggest'];
- // $wgEnableMWSuggest hit incoming when $wgEnableMWSuggest is
- // disabled
- if( $suggest && !$wgEnableMWSuggest )
+ // MWSuggest or similar hit
+ if( $suggest && !$wgEnableOpenSearchSuggest )
$srchres = array();
else {
// Open search results may be stored for a very long
'search' => 'Search string',
'limit' => 'Maximum amount of results to return',
'namespace' => 'Namespaces to search',
- 'suggest' => 'Do nothing if $wgEnableMWSuggest is false',
+ 'suggest' => 'Do nothing if $wgEnableOpenSearchSuggest is false',
);
}