ApiOpenSearch: Don't output warnings in JSON mode
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Apr 2015 19:39:16 +0000 (15:39 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Apr 2015 19:40:46 +0000 (15:40 -0400)
commit663d555abd2b4422ae26e7aceba48ae3df8b2a95
treeaf1331655bddc56108b633d8b5a5f35d1c4ca37d
parent9d478f513eb794c829f74fe0edddada92f17e78e
ApiOpenSearch: Don't output warnings in JSON mode

The OpenSearch JSON format doesn't have any way to report warnings. So
by default we just drop them, but a new option will cause them to be
converted to errors instead.

Bug: T97617
Change-Id: I632bbb99a3d0f04baa5aff211fc52c3f34b13b78
autoload.php
includes/api/ApiOpenSearch.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json