dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Keep backend param to search API as long as there's a backend"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQuerySearch.php
diff --git
a/includes/api/ApiQuerySearch.php
b/includes/api/ApiQuerySearch.php
index
51f799a
..
16a491e
100644
(file)
--- a/
includes/api/ApiQuerySearch.php
+++ b/
includes/api/ApiQuerySearch.php
@@
-332,7
+332,7
@@
class ApiQuerySearch extends ApiQueryGeneratorBase {
);
$alternatives = SearchEngine::getSearchTypes();
- if ( count( $alternatives ) >
0
) {
+ if ( count( $alternatives ) >
1
) {
if ( $alternatives[0] === null ) {
$alternatives[0] = self::BACKEND_NULL_PARAM;
}