From: Brion Vibber Date: Tue, 20 Dec 2011 22:05:40 +0000 (+0000) Subject: Revert r106870: doesn't seem like it would format things consistently as expected. X-Git-Tag: 1.31.0-rc.0~25847 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=adf5768359e19f9d29b85034dbc01a6836d7cbfd;p=lhc%2Fweb%2Fwiklou.git Revert r106870: doesn't seem like it would format things consistently as expected. --- 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"; } } }