diff options
Diffstat (limited to 'includes/api/ApiOpenSearch.php')
-rw-r--r-- | includes/api/ApiOpenSearch.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 33790f9285b0..8c03dceeff4c 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -212,6 +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->addValue( null, 0, strval( $search ) ); $terms = array(); $descriptions = array(); |