From e22c5cb3e71370fc67e1b9644e4eca8574227568 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 20 May 2011 17:38:05 +0000 Subject: [PATCH] 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 --- includes/api/ApiBase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]}"; -- 2.20.1