From 62d8a060dcc30c5c6b7ed571e8c9a843f25bbda3 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 16 Sep 2014 16:45:09 -0400 Subject: [PATCH] API: Make jsonfm the default output format Now that action=help isn't requiring xmlfm for sane display, make jsonfm the default. Change-Id: I515c322f31243081ed1315a17befe9792237eeaa --- RELEASE-NOTES-1.25 | 1 + includes/api/ApiMain.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index c01fa412fd..c34db83f41 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -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. diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 836853d925..1dc3dc447d 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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 -- 2.20.1