OpenSearch: Error for unsupported formats and adding format=jsonfm
authorTimo Tijhof <ttijhof@wikimedia.org>
Wed, 27 Mar 2013 21:31:05 +0000 (22:31 +0100)
committerTimo Tijhof <ttijhof@wikimedia.org>
Thu, 28 Mar 2013 20:05:10 +0000 (21:05 +0100)
commit0509c1ed0e5fea34818fc003bfb985ec59b3f533
tree2278253779f4b22b6b7af2fdc0638f5fc96e91c4
parent769f434402230c119bee8b643faa9689d90469c6
OpenSearch: Error for unsupported formats and adding format=jsonfm

Previously it would just completely ignore the format parameter.
Making it always serve JSON no matter the value of the format
parameter.

Now it properly errors when doing (for example) format=txt or format=xml.

Also adding support for jsonfm.

Change-Id: Ia98f54f41f39006312fb49ecd718f0f161f27c37
RELEASE-NOTES-1.21
includes/api/ApiOpenSearch.php