r46646 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46645‎ | r46646 | r46647 >
Date:16:29, 31 January 2009
Author:catrope
Status:deferred (Comments)
Tags:
Comment:
API: (bug 17239) Added prop=displaytitle to action=parse
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -151,6 +151,8 @@
152152 $result_array['externallinks'] = array_keys($p_result->getExternalLinks());
153153 if(isset($prop['sections']))
154154 $result_array['sections'] = $p_result->getSections();
 155+ if(isset($prop['displaytitle']))
 156+ $result_array['displaytitle'] = $p_result->getDisplayTitle();
155157 if(!is_null($oldid))
156158 $result_array['revid'] = $oldid;
157159
@@ -223,7 +225,7 @@
224226 'redirects' => false,
225227 'oldid' => null,
226228 'prop' => array(
227 - ApiBase :: PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid',
 229+ ApiBase :: PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle',
228230 ApiBase :: PARAM_ISMULTI => true,
229231 ApiBase :: PARAM_TYPE => array(
230232 'text',
@@ -234,7 +236,8 @@
235237 'images',
236238 'externallinks',
237239 'sections',
238 - 'revid'
 240+ 'revid',
 241+ 'displaytitle',
239242 )
240243 ),
241244 'pst' => false,
Index: trunk/phase3/RELEASE-NOTES
@@ -139,6 +139,7 @@
140140 * (bug 17182) Fix pretty printer so URLs with parentheses in them are
141141 autolinked correctly
142142 * (bug 17224) Added siprop=rightsinfo to meta=siteinfo
 143+* (bug 17239) Added prop=displaytitle to action=parse
143144
144145 === Languages updated in 1.15 ===
145146

Follow-up revisions

RevisionCommit summaryAuthorDate
r46647Fix up r46646: instead of outputting displaytitle="" when {{DISPLAYTITLE}} is...catrope16:35, 31 January 2009

Comments

#Comment by Werdna (talk | contribs)   23:47, 11 February 2009

Fix in r46647.

Status & tagging log