r77103 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77102‎ | r77103 | r77104 >
Date:12:49, 22 November 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r76922, return comment id if there is one
Modified paths:
  • /trunk/extensions/CodeReview/api/ApiRevisionUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/api/ApiRevisionUpdate.php
@@ -45,7 +45,7 @@
4646
4747 $revisionCommitter = new CodeRevisionCommitterApi( $repo, $rev );
4848
49 - $revisionCommitter->revisionUpdate(
 49+ $commentID = $revisionCommitter->revisionUpdate(
5050 $params['status'],
5151 $params['addtags'],
5252 $params['removetags'],
@@ -54,6 +54,11 @@
5555 );
5656
5757 $r = array( 'result' => 'Success' );
 58+
 59+ if ( $commentID !== 0 ) {
 60+ $r['commentid'] = intval($commentID);
 61+ }
 62+
5863 $this->getResult()->addValue( null, $this->getModuleName(), $r );
5964 }
6065

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76922bug 25940 Add API module(s) to add comments/set revision status...reedy00:00, 18 November 2010

Status & tagging log