Index: trunk/phase3/includes/SearchEngine.php |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | if($wgMWSuggestTemplate) |
405 | 405 | return $wgMWSuggestTemplate; |
406 | 406 | else |
407 | | - return $wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}&namespace={namespaces}&suggest=1'; |
| 407 | + return $wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}&namespace={namespaces}&suggest'; |
408 | 408 | } |
409 | 409 | } |
410 | 410 | |
Index: trunk/phase3/includes/api/ApiOpenSearch.php |
— | — | @@ -77,9 +77,7 @@ |
78 | 78 | ApiBase :: PARAM_TYPE => 'namespace', |
79 | 79 | ApiBase :: PARAM_ISMULTI => true |
80 | 80 | ), |
81 | | - 'suggest' => array( |
82 | | - ApiBase :: PARAM_TYPE => 'integer' |
83 | | - ), |
| 81 | + 'suggest' => false, |
84 | 82 | ); |
85 | 83 | } |
86 | 84 | |
— | — | @@ -88,6 +86,7 @@ |
89 | 87 | 'search' => 'Search string', |
90 | 88 | 'limit' => 'Maximum amount of results to return', |
91 | 89 | 'namespace' => 'Namespaces to search', |
| 90 | + 'suggest' => 'Do nothing if $wgEnableMWSuggest is false', |
92 | 91 | ); |
93 | 92 | } |
94 | 93 | |