r112291 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112290‎ | r112291 | r112292 >
Date:02:11, 24 February 2012
Author:reedy
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1 (modified) (history)
  • /branches/wmf/1.19wmf1/includes (modified) (history)
  • /branches/wmf/1.19wmf1/includes/api (modified) (history)
  • /branches/wmf/1.19wmf1/includes/api/ApiParamInfo.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/api/ApiParamInfo.php
@@ -147,6 +147,9 @@
148148 $examples = $obj->getExamples();
149149 $retval['allexamples'] = array();
150150 if ( $examples !== false ) {
 151+ if ( is_string( $examples ) ) {
 152+ $examples = array( $examples );
 153+ }
151154 foreach( $examples as $k => $v ) {
152155 if ( strlen( $retval['examples'] ) ) {
153156 $retval['examples'] .= ' ';
Property changes on: branches/wmf/1.19wmf1/includes/api
___________________________________________________________________
Modified: svn:mergeinfo
154157 Merged /trunk/phase3/includes/api:r112290
Property changes on: branches/wmf/1.19wmf1/includes
___________________________________________________________________
Modified: svn:mergeinfo
155158 Merged /trunk/phase3/includes:r112290
Property changes on: branches/wmf/1.19wmf1
___________________________________________________________________
Modified: svn:mergeinfo
156159 Merged /trunk/phase3:r112290

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112290Examples can just be a string...reedy02:06, 24 February 2012

Status & tagging log