API: Make jsonfm the default output format
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 16 Sep 2014 20:45:09 +0000 (16:45 -0400)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 13 Oct 2014 22:14:58 +0000 (22:14 +0000)
Now that action=help isn't requiring xmlfm for sane display, make jsonfm
the default.

Change-Id: I515c322f31243081ed1315a17befe9792237eeaa

RELEASE-NOTES-1.25
includes/api/ApiMain.php

index c01fa41..c34db83 100644 (file)
@@ -30,6 +30,7 @@ production.
   language by default. 'uselang' is now a recognized API parameter;
   "uselang=user" may be used to select the language from the current user's
   preferences.
+* Default output format for the API is now jsonfm.
 
 === Action API internal changes in 1.25 ===
 * ApiHelp has been rewritten to support i18n and paginated HTML output.
index 836853d..1dc3dc4 100644 (file)
@@ -42,7 +42,7 @@ class ApiMain extends ApiBase {
        /**
         * When no format parameter is given, this format will be used
         */
-       const API_DEFAULT_FORMAT = 'xmlfm';
+       const API_DEFAULT_FORMAT = 'jsonfm';
 
        /**
         * List of available modules: action name => module class