Index: trunk/phase3/includes/SpecialUpload.php |
— | — | @@ -459,7 +459,6 @@ |
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 | | - wfDebugLog( 'borko', 'wtf' ); |
464 | 463 | |
465 | 464 | if( strpos( $file->getName(), '.' ) == false ) { |
466 | 465 | $partname = $file->getName(); |
— | — | @@ -467,7 +466,6 @@ |
468 | 467 | } else { |
469 | 468 | list( $partname, $rawExtension ) = explode( '.', $file->getName(), 2 ); |
470 | 469 | } |
471 | | - wfDebugLog( 'borko', sprintf( "%s - %s - %s", $partname, $rawExtension, $file->getExtension() ) ); |
472 | 470 | $sk = $wgUser->getSkin(); |
473 | 471 | |
474 | 472 | if ( $rawExtension != $file->getExtension() ) { |
— | — | @@ -478,14 +476,8 @@ |
479 | 477 | // Check for another file using the normalized form... |
480 | 478 | $nt_lc = Title::newFromText( $partname . '.' . $file->getExtension() ); |
481 | 479 | $file_lc = wfLocalFile( $nt_lc ); |
482 | | - if( $file_lc ) { |
483 | | - wfDebugLog( 'borko', 'whee: ' . $file_lc->getName() ); |
484 | | - } else { |
485 | | - wfDebugLog( 'borko', 'no lc match'); |
486 | | - } |
487 | 480 | } else { |
488 | 481 | $file_lc = false; |
489 | | - wfDebugLog( 'borko', 'extensions ok'); |
490 | 482 | } |
491 | 483 | |
492 | 484 | if( $file->exists() ) { |
— | — | @@ -504,7 +496,6 @@ |
505 | 497 | $warning .= '<li>' . wfMsgExt( 'fileexists', 'parseline', $dlink ) . '</li>' . $dlink2; |
506 | 498 | |
507 | 499 | } elseif ( $file_lc && $file_lc->exists() ) { |
508 | | - wfDebugLog( 'borko', 'whee: ' . $file_lc->getName() ); |
509 | 500 | # Check if image with lowercase extension exists. |
510 | 501 | # It's not forbidden but in 99% it makes no sense to upload the same filename with uppercase extension |
511 | 502 | $dlink = $sk->makeKnownLinkObj( $nt_lc ); |