From adf5768359e19f9d29b85034dbc01a6836d7cbfd Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 20 Dec 2011 22:05:40 +0000 Subject: [PATCH] Revert r106870: doesn't seem like it would format things consistently as expected. --- includes/api/ApiBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 920f114824..efbf1c0f11 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -280,11 +280,11 @@ abstract class ApiBase extends ContextSource { $msg .= " $v\n"; } else { if ( is_array( $v ) ) { - $msgExample = implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) ); + $msg .= implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) ); } else { - $msgExample = " $v"; + $msg .= " $v"; } - $msg .= wordwrap( $msgExample, 100, "\n" ) . "\n $k"; + $msg .= "\n $k"; } } } -- 2.20.1