Index: trunk/phase3/skins/common/upload.js |
— | — | @@ -131,8 +131,8 @@ |
132 | 132 | fname = path.substring(backslash+1, 10000); |
133 | 133 | } |
134 | 134 | |
135 | | - // Capitalise first letter and replace spaces by underscores |
136 | | - fname = fname.charAt(0).toUpperCase().concat(fname.substring(1,10000)).replace(/ /g, '_'); |
| 135 | + // Replace spaces by underscores |
| 136 | + fname = fname.replace(/ /g, '_'); |
137 | 137 | |
138 | 138 | // Output result |
139 | 139 | var destFile = document.getElementById('wpDestFile'); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1455,7 +1455,7 @@ |
1456 | 1456 | * to ensure that client-side caches don't keep obsolete copies of global |
1457 | 1457 | * styles. |
1458 | 1458 | */ |
1459 | | -$wgStyleVersion = '196'; |
| 1459 | +$wgStyleVersion = '197'; |
1460 | 1460 | |
1461 | 1461 | |
1462 | 1462 | # Server-side caching: |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -504,6 +504,9 @@ |
505 | 505 | if ( ! $this->mIgnoreWarning ) { |
506 | 506 | $warning = ''; |
507 | 507 | |
| 508 | + global $wgCapitalLinks; |
| 509 | + if ( $wgCapitalLinks ) ucfirst( $basename ); |
| 510 | + |
508 | 511 | if( str_replace( ' ', '_', $basename ) != $filtered ) { |
509 | 512 | $warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mDestName ) ).'</li>'; |
510 | 513 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -39,6 +39,7 @@ |
40 | 40 | * Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class) |
41 | 41 | * Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class) |
42 | 42 | * (bug 16968) Special:Upload no longer throws useless warnings. |
| 43 | +* (bug 15470) Special:Upload no longer force-capitalizes titles |
43 | 44 | |
44 | 45 | == API changes in 1.15 == |
45 | 46 | * (bug 16798) JSON encoding errors for some characters outside the BMP |