r64850 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64849‎ | r64850 | r64851 >
Date:04:31, 10 April 2010
Author:mah
Status:ok
Tags:
Comment:
fix a bug where an undefined var was used, api actually works now?
Modified paths:
  • /trunk/phase3/includes/api/ApiRollback.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiRollback.php
@@ -46,7 +46,7 @@
4747 $articleObj = new Article( $this->mTitleObj );
4848 $summary = ( isset( $params['summary'] ) ? $params['summary'] : '' );
4949 $details = null;
50 - $retval = $articleObj->doRollback( $username, $summary, $params['token'], $params['markbot'], $details );
 50+ $retval = $articleObj->doRollback( $params['user'], $summary, $params['token'], $params['markbot'], $details );
5151
5252 if ( $retval ) {
5353 // We don't care about multiple errors, just report one of them

Follow-up revisions

RevisionCommit summaryAuthorDate
r64871Followup to r64850: replace $username with the right varcatrope12:14, 10 April 2010

Status & tagging log