r66233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66232‎ | r66233 | r66234 >
Date:22:34, 11 May 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup to r66232 do same for limit text, and module rights
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -223,13 +223,13 @@
224224 $msg = $lnPrfx . implode( $lnPrfx, $msg ) . "\n";
225225
226226 if ( $this->isReadMode() ) {
227 - $msg .= "\nThis module requires read rights.";
 227+ $msg .= "\nThis module requires read rights";
228228 }
229229 if ( $this->isWriteMode() ) {
230 - $msg .= "\nThis module requires write rights.";
 230+ $msg .= "\nThis module requires write rights";
231231 }
232232 if ( $this->mustBePosted() ) {
233 - $msg .= "\nThis module only accepts POST requests.";
 233+ $msg .= "\nThis module only accepts POST requests";
234234 }
235235 if ( $this->isReadMode() || $this->isWriteMode() ||
236236 $this->mustBePosted() )
@@ -325,7 +325,7 @@
326326 $desc .= $paramPrefix . $prompt . implode( ', ', ApiBase::getValidNamespaces() );
327327 break;
328328 case 'limit':
329 - $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]} ({$paramSettings[self::PARAM_MAX2]} for bots) allowed.";
 329+ $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]} ({$paramSettings[self::PARAM_MAX2]} for bots) allowed";
330330 break;
331331 case 'integer':
332332 $hasMin = isset( $paramSettings[self::PARAM_MIN] );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66232Mixture of things....reedy22:30, 11 May 2010

Status & tagging log