Merge "API: Make jsonfm the default output format"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 13 Oct 2014 22:22:10 +0000 (22:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 13 Oct 2014 22:22:10 +0000 (22:22 +0000)
RELEASE-NOTES-1.25
includes/api/ApiMain.php

index 65ccdc5..69c5375 100644 (file)
@@ -44,6 +44,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