r49435 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49434‎ | r49435 | r49436 >
Date:10:48, 13 April 2009
Author:catrope
Status:ok
Tags:
Comment:
API: Add parentid (rev_parent_id) to prop=revisions output, as requested by Luca
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -317,6 +317,8 @@
318318 if ($this->fld_ids) {
319319 $vals['revid'] = intval($revision->getId());
320320 // $vals['oldid'] = intval($row->rev_text_id); // todo: should this be exposed?
 321+ if (!is_null($revision->getParentId()))
 322+ $vals['parentid'] = intval($revision->getParentId());
321323 }
322324
323325 if ($this->fld_flags && $revision->isMinor())
Index: trunk/phase3/RELEASE-NOTES
@@ -340,6 +340,8 @@
341341 * (bug 11381) session.save_handler being set twice (causes error)
342342 * (bug 17835) ForeignAPIRepo throwing error on first page load for file
343343 * (bug 18115) ForeignAPIRepo cache isn't working
 344+* Fixed a bug caused by LanguageConverter.php, which brings an abnormal '}-'
 345+ after some parsed math syntax.
344346
345347 == API changes in 1.15 ==
346348 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
@@ -393,8 +395,7 @@
394396 * Added uiprop=changeablegroups to meta=userinfo
395397 * Added usprop=gender to list=users
396398 * (bug 18311) action=purge now works for images too
397 -* Fixed a bug caused by LanguageConverter.php, which brings an abnormal '}-'
398 - after some parsed math syntax.
 399+* Add parentid to prop=revisions output
399400
400401 === Languages updated in 1.15 ===
401402

Status & tagging log