Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -339,13 +339,13 @@ |
340 | 340 | list( $existsType, $file ) = $exists; |
341 | 341 | |
342 | 342 | 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 | + } |
350 | 350 | |
351 | 351 | $sk = $wgUser->getSkin(); |
352 | 352 | |