r41270 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41269‎ | r41270 | r41271 >
Date:21:41, 25 September 2008
Author:catrope
Status:old
Tags:
Comment:
We can at least *pretend* to be consistent here
Modified paths:
  • /trunk/phase3/includes/api/ApiMove.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMove.php
@@ -88,8 +88,8 @@
8989 // We're not gonna dieUsage() on failure, since we already changed something
9090 else
9191 {
92 - $r['talkmove-error-code'] = ApiBase::$messageMap[current($retval)]['code'];
93 - $r['talkmove-error-info'] = ApiBase::$messageMap[current($retval)]['info'];
 92+ $r['talkmove-error-code'] = ApiBase::$messageMap[reset($retval)]['code'];
 93+ $r['talkmove-error-info'] = ApiBase::$messageMap[reset($retval)]['info'];
9494 }
9595 }
9696