r46647 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46646‎ | r46647 | r46648 >
Date:16:35, 31 January 2009
Author:catrope
Status:deferred
Tags:
Comment:
Fix up r46646: instead of outputting displaytitle="" when {{DISPLAYTITLE}} isn't used (or isn't valid), output the 'normal' title instead
Modified paths:
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -152,7 +152,9 @@
153153 if(isset($prop['sections']))
154154 $result_array['sections'] = $p_result->getSections();
155155 if(isset($prop['displaytitle']))
156 - $result_array['displaytitle'] = $p_result->getDisplayTitle();
 156+ $result_array['displaytitle'] = $p_result->getDisplayTitle() ?
 157+ $p_result->getDisplayTitle() :
 158+ $titleObj->getPrefixedText();
157159 if(!is_null($oldid))
158160 $result_array['revid'] = $oldid;
159161

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r46646API: (bug 17239) Added prop=displaytitle to action=parsecatrope16:29, 31 January 2009

Status & tagging log