Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -504,10 +504,13 @@ |
505 | 505 | if ( ! $this->mIgnoreWarning ) { |
506 | 506 | $warning = ''; |
507 | 507 | |
508 | | - global $wgCapitalLinks; |
509 | | - if ( $wgCapitalLinks ) ucfirst( $basename ); |
| 508 | + $comparableName = str_replace( ' ', '_', $basename ); |
| 509 | + global $wgCapitalLinks, $wgContLang; |
| 510 | + if ( $wgCapitalLinks ) { |
| 511 | + $comparableName = $wgContLang->ucfirst( $comparableName ); |
| 512 | + } |
510 | 513 | |
511 | | - if( str_replace( ' ', '_', $basename ) != $filtered ) { |
| 514 | + if( $comparableName !== $filtered ) { |
512 | 515 | $warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mDestName ) ).'</li>'; |
513 | 516 | } |
514 | 517 | |