From: Sam Reed Date: Fri, 20 May 2011 17:38:05 +0000 (+0000) Subject: While looking at bug 26990 on TW api, it was noticed with a load of NS's they don... X-Git-Tag: 1.31.0-rc.0~30062 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=e22c5cb3e71370fc67e1b9644e4eca8574227568;p=lhc%2Fweb%2Fwiklou.git While looking at bug 26990 on TW api, it was noticed with a load of NS's they don't word wrap So make them wordwrap like the rest of the text --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 961d401d44..a2c8769c86 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -347,7 +347,9 @@ abstract class ApiBase { switch ( $type ) { case 'namespace': // Special handling because namespaces are type-limited, yet they are not given - $desc .= $paramPrefix . $prompt . implode( ', ', MWNamespace::getValidNamespaces() ); + $desc .= $paramPrefix . $prompt; + $desc .= wordwrap( implode( ', ', MWNamespace::getValidNamespaces() ), + 100, $descWordwrap ); break; case 'limit': $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]}";