From fc072f2dfcc92095e9f9e558327e001208a70f35 Mon Sep 17 00:00:00 2001 From: Liangent Date: Mon, 26 Mar 2012 21:36:24 +0800 Subject: [PATCH] Was causing Notice: Array to string conversion in .../includes/api/ApiBase.php on line 285 and examples of list=allimages are not displayed properly Change-Id: I4fde14245ac19716957beb634a274c3a6042d776 --- includes/api/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index a8c3cc7f87..607c47af92 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -282,12 +282,12 @@ abstract class ApiBase extends ContextSource { if ( is_numeric( $k ) ) { $msg .= " $v\n"; } else { - $v .= ":"; if ( is_array( $v ) ) { $msgExample = implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) ); } else { $msgExample = " $v"; } + $msgExample .= ":"; $msg .= wordwrap( $msgExample, 100, "\n" ) . "\n $k\n"; } } -- 2.20.1