* Clean up duplicate code for selection of changeslist style
* (bug 3475) anon contrib links on Special:Newpages
* Correct blob caching to reduce redundant blob loads on backups
+* (bug 3485) Fix bogus warning about filename capitalization when off
=== Caveats ===
*/
if ( ! $this->mIgnoreWarning ) {
$warning = '';
- if( $this->mUploadSaveName != ucfirst( $filtered ) ) {
+
+ global $wgCapitalLinks;
+ if( $wgCapitalLinks ) {
+ $filtered = ucfirst( $filtered );
+ }
+ if( $this->mUploadSaveName != $filtered ) {
$warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mUploadSaveName ) ).'</li>';
}