r45896 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45895‎ | r45896 | r45897 >
Date:15:23, 19 January 2009
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 17048) Show the 'new' flag in list=usercontribs for the revision that created the page, even if it's not the top revision
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUserContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserContributions.php
@@ -195,7 +195,7 @@
196196 // $this->addFieldsIf('rev_text_id', $this->fld_ids); // Should this field be exposed?
197197 $this->addFieldsIf('rev_comment', $this->fld_comment);
198198 $this->addFieldsIf('rev_minor_edit', $this->fld_flags);
199 - $this->addFieldsIf('page_is_new', $this->fld_flags);
 199+ $this->addFieldsIf('rev_parent_id', $this->fld_flags);
200200 }
201201
202202 /**
@@ -220,7 +220,7 @@
221221 $vals['timestamp'] = wfTimestamp(TS_ISO_8601, $row->rev_timestamp);
222222
223223 if ($this->fld_flags) {
224 - if ($row->page_is_new)
 224+ if ($row->rev_parent_id == 0)
225225 $vals['new'] = '';
226226 if ($row->rev_minor_edit)
227227 $vals['minor'] = '';
Index: trunk/phase3/RELEASE-NOTES
@@ -64,6 +64,8 @@
6565 * (bug 16844) Added clcategories parameter to prop=categories
6666 * (bug 17025) Added siprop=fileextension to meta=siteinfo
6767 * (bug 17027) Added siprop=configvars to meta=siteinfo
 68+* (bug 17048) Show the 'new' flag in list=usercontribs for the revision that created the
 69+ page, even if it's not the top revision
6870
6971 === Languages updated in 1.15 ===
7072

Status & tagging log