jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Manybubbles: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I9009f2599f5bc6fa8f9c49370fd0ffb714e31755
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits