r49435 - Code Review

From MediaWiki.org

Jump to: navigation, search
Repository:MediaWiki
Revision:r49434 | r49435 (on ViewVC) | 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:

Diff [purge]

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

Status & tagging log

Views
Toolbox