From: Sam Reed Date: Tue, 11 May 2010 22:34:41 +0000 (+0000) Subject: Followup to r66232 do same for limit text, and module rights X-Git-Tag: 1.31.0-rc.0~36883 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=6b5a27c0e8cd91dc6d706d1431c3ed4e7389975f;p=lhc%2Fweb%2Fwiklou.git Followup to r66232 do same for limit text, and module rights --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index d4587d7354..a89f41fad3 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -223,13 +223,13 @@ abstract class ApiBase { $msg = $lnPrfx . implode( $lnPrfx, $msg ) . "\n"; if ( $this->isReadMode() ) { - $msg .= "\nThis module requires read rights."; + $msg .= "\nThis module requires read rights"; } if ( $this->isWriteMode() ) { - $msg .= "\nThis module requires write rights."; + $msg .= "\nThis module requires write rights"; } if ( $this->mustBePosted() ) { - $msg .= "\nThis module only accepts POST requests."; + $msg .= "\nThis module only accepts POST requests"; } if ( $this->isReadMode() || $this->isWriteMode() || $this->mustBePosted() ) @@ -325,7 +325,7 @@ abstract class ApiBase { $desc .= $paramPrefix . $prompt . implode( ', ', ApiBase::getValidNamespaces() ); break; case 'limit': - $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]} ({$paramSettings[self::PARAM_MAX2]} for bots) allowed."; + $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]} ({$paramSettings[self::PARAM_MAX2]} for bots) allowed"; break; case 'integer': $hasMin = isset( $paramSettings[self::PARAM_MIN] );