r70492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70491‎ | r70492 | r70493 >
Date:07:08, 5 August 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r69091 Where did those spaces come from? :/
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -718,8 +718,8 @@
719719 break;
720720 case 'user':
721721 if ( !is_array( $value ) ) {
722 - $value = array( $value );
723 - }
 722+ $value = array( $value );
 723+ }
724724
725725 foreach ( $value as $key => $val ) {
726726 $title = Title::makeTitleSafe( NS_USER, $val );
@@ -730,9 +730,9 @@
731731 }
732732
733733 if ( !$multi ) {
734 - $value = $value[0];
735 - }
736 - break;
 734+ $value = $value[0];
 735+ }
 736+ break;
737737 default:
738738 ApiBase::dieDebug( __METHOD__, "Param $encParamName's type is unknown - $type" );
739739 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69091Stylize API...reedy13:15, 6 July 2010

Status & tagging log