Index: trunk/phase3/includes/SpecialUpload.php |
— | — | @@ -459,7 +459,7 @@ |
460 | 460 | // Check for uppercase extension. We allow these filenames but check if an image |
461 | 461 | // with lowercase extension exists already |
462 | 462 | $warning = ''; |
463 | | - $ext = $file->getExtension(); |
| 463 | + $ext = substr( $file->getName(), strlen( $file->getName() ) - strlen( $file->getExtension() ), strlen( $file->getExtension() ) ); |
464 | 464 | $sk = $wgUser->getSkin(); |
465 | 465 | if ( $ext !== '' ) { |
466 | 466 | $partname = substr( $file->getName(), 0, -strlen( $ext ) - 1 ); |