dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
919e080
)
Merge "Revert "Keep backend param to search API as long as there's a backend""
author
Chad
<chadh@wikimedia.org>
Tue, 6 Jan 2015 18:50:28 +0000
(18:50 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 6 Jan 2015 18:50:28 +0000
(18:50 +0000)
includes/api/ApiQuerySearch.php
patch
|
blob
|
history
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;
}