r55497 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55496‎ | r55497 | r55498 >
Date:20:00, 22 August 2009
Author:ialex
Status:deferred
Tags:
Comment:
use tabs for identation, not spaces
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -339,13 +339,13 @@
340340 list( $existsType, $file ) = $exists;
341341
342342 if( strpos( $file->getName(), '.' ) == false ) {
343 - $partname = $file->getName();
344 - $rawExtension = '';
345 - } else {
346 - $n = strrpos( $file->getName(), '.' );
347 - $rawExtension = substr( $file->getName(), $n + 1 );
348 - $partname = substr( $file->getName(), 0, $n );
349 - }
 343+ $partname = $file->getName();
 344+ $rawExtension = '';
 345+ } else {
 346+ $n = strrpos( $file->getName(), '.' );
 347+ $rawExtension = substr( $file->getName(), $n + 1 );
 348+ $partname = substr( $file->getName(), 0, $n );
 349+ }
350350
351351 $sk = $wgUser->getSkin();
352352

Status & tagging log