r78841 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78840‎ | r78841 | r78842 >
Date:21:40, 22 December 2010
Author:reedy
Status:ok
Tags:
Comment:
* (bug 24287) Wrap/similar on api help output
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -336,7 +336,9 @@
337337 $choices[] = $t;
338338 }
339339 }
340 - $desc .= $paramPrefix . $nothingPrompt . $prompt . implode( ', ', $choices );
 340+ $desc .= $paramPrefix . $nothingPrompt . $prompt;
 341+ $choicesstring = implode( ', ', $choices );
 342+ $desc .= wordwrap( $choicesstring, 100, "\n " );
341343 } else {
342344 switch ( $type ) {
343345 case 'namespace':
Index: trunk/phase3/RELEASE-NOTES
@@ -45,6 +45,7 @@
4646 * (bug 26339) Throw warning when truncating an overlarge API result
4747 * (bug 14869) Add API module for accessing QueryPage-based special pages
4848 * (bug 14020) API for Special:Unwatchedpages
 49+* (bug 24287) Wrap/similar on api help output
4950
5051 === Languages updated in 1.18 ===
5152

Follow-up revisions

RevisionCommit summaryAuthorDate
r78846Better release notes for r78841reedy21:52, 22 December 2010

Status & tagging log