r106878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106877‎ | r106878 | r106879 >
Date:22:05, 20 December 2011
Author:brion
Status:ok
Tags:
Comment:
Revert r106870: doesn't seem like it would format things consistently as expected.
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -280,11 +280,11 @@
281281 $msg .= " $v\n";
282282 } else {
283283 if ( is_array( $v ) ) {
284 - $msgExample = implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) );
 284+ $msg .= implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) );
285285 } else {
286 - $msgExample = " $v";
 286+ $msg .= " $v";
287287 }
288 - $msg .= wordwrap( $msgExample, 100, "\n" ) . "\n $k";
 288+ $msg .= "\n $k";
289289 }
290290 }
291291 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106870For r106521/r106865, wrap long example description strings...reedy21:37, 20 December 2011

Status & tagging log