From: Daniel Cannon Date: Wed, 24 Oct 2007 19:34:29 +0000 (+0000) Subject: (bug 11721) API: Use a different title for results than for the help page. X-Git-Tag: 1.31.0-rc.0~51086 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=bfcd95c8e5b8f88b2604cc017c7b090a6d10cfe8;p=lhc%2Fweb%2Fwiklou.git (bug 11721) API: Use a different title for results than for the help page. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 53d680d797..1472c5b8fa 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -140,6 +140,7 @@ Full API documentation is available at http://www.mediawiki.org/wiki/API * Add rctype parameter to list=recentchanges that filters by type * Add apprtype and apprlevel parameters to filter list=allpages by protection types and levels * Add apdir parameter to enable listing all pages from Z to A +* (bug 11721) Use a different title for results than for the help page. === Languages updated in 1.12 === diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index dc5b7444f7..04de86166c 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -111,7 +111,11 @@ abstract class ApiFormatBase extends ApiBase { - MediaWiki API +mUnescapeAmps) { +?> MediaWiki API + MediaWiki API Result + mPrinter; $printer->profileIn(); - $printer->initPrinter($isError); /* If the help message is requested in the default (xmlfm) format, * tell the printer not to escape ampersands so that our links do @@ -329,6 +328,8 @@ class ApiMain extends ApiBase { $printer->setUnescapeAmps ( $this->mAction == 'help' && $params['format'] == ApiMain::API_DEFAULT_FORMAT ); + $printer->initPrinter($isError); + $printer->execute(); $printer->closePrinter(); $printer->profileOut();