r79792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79791‎ | r79792 | r79793 >
Date:02:53, 7 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Remove some blank lines

Spaces to tabs in ApiBase
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -336,9 +336,9 @@
337337 $choices[] = $t;
338338 }
339339 }
340 - $desc .= $paramPrefix . $nothingPrompt . $prompt;
341 - $choicesstring = implode( ', ', $choices );
342 - $desc .= wordwrap( $choicesstring, 100, "\n " );
 340+ $desc .= $paramPrefix . $nothingPrompt . $prompt;
 341+ $choicesstring = implode( ', ', $choices );
 342+ $desc .= wordwrap( $choicesstring, 100, "\n " );
343343 } else {
344344 switch ( $type ) {
345345 case 'namespace':
Index: trunk/phase3/includes/api/ApiUpload.php
@@ -169,13 +169,11 @@
170170
171171 }
172172
173 -
174173 // The following modules all require the filename parameter to be set
175174 if ( is_null( $this->mParams['filename'] ) ) {
176175 $this->dieUsageMsg( array( 'missingparam', 'filename' ) );
177176 }
178177
179 -
180178 if ( $this->mParams['sessionkey'] ) {
181179 // Upload stashed in a previous request
182180 $sessionData = $request->getSessionData( UploadBase::getSessionKeyName() );
@@ -188,7 +186,6 @@
189187 $this->mParams['sessionkey'],
190188 $sessionData[$this->mParams['sessionkey']] );
191189
192 -
193190 } elseif ( isset( $this->mParams['file'] ) ) {
194191 $this->mUpload = new UploadFromFile();
195192 $this->mUpload->initialize(

Status & tagging log