Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/182368
Change subject: Keep backend param to search API as long as there's a backend
......................................................................
Keep backend param to search API as long as there's a backend
Originally this was designed to only show up when there was
more than one backend. That's more likely to break for clients
though if you want to go back to only having one backend again.
Change-Id: I9009f2599f5bc6fa8f9c49370fd0ffb714e31755
---
M includes/api/ApiQuerySearch.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/68/182368/1
diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php
index 16a491e..51f799a 100644
--- a/includes/api/ApiQuerySearch.php
+++ b/includes/api/ApiQuerySearch.php
@@ -332,7 +332,7 @@
);
$alternatives = SearchEngine::getSearchTypes();
- if ( count( $alternatives ) > 1 ) {
+ if ( count( $alternatives ) > 0 ) {
if ( $alternatives[0] === null ) {
$alternatives[0] = self::BACKEND_NULL_PARAM;
}
--
To view, visit https://gerrit.wikimedia.org/r/182368
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9009f2599f5bc6fa8f9c49370fd0ffb714e31755
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits