From c2675c2e92791aab80ba7cfe6d99093846625ae3 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Thu, 30 Apr 2015 02:39:55 +0200 Subject: [PATCH] Restore B/C for ApiOpenSearch json output if warnings are present Bug: T97617 Change-Id: Id26f83398c989b7737f52da3f90603ddb533517c --- includes/api/ApiOpenSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 8c03dceeff..36026c22f4 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -212,7 +212,7 @@ class ApiOpenSearch extends ApiBase { switch ( $this->getFormat() ) { case 'json': // http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.1 - $result->addArrayType( null, 'array' ); + $result->addArrayType( null, 'BCarray' ); $result->addValue( null, 0, strval( $search ) ); $terms = array(); $descriptions = array(); -- 2.20.1