From: Brion Vibber Date: Sat, 17 Sep 2005 00:17:34 +0000 (+0000) Subject: * (bug 3475) anon contrib links on Special:Newpages X-Git-Tag: 1.6.0~1627 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=71d7da43e0b2cd63ec7fef5d038c2040e08683b2;p=lhc%2Fweb%2Fwiklou.git * (bug 3475) anon contrib links on Special:Newpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6541a093ed..d297597463 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -110,6 +110,7 @@ fully support the editing toolbar, but was found to be too confusing. * 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 === diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 3eda0f3afa..ec6d4c3708 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -247,7 +247,12 @@ class UploadForm { */ if ( ! $this->mIgnoreWarning ) { $warning = ''; - if( $this->mUploadSaveName != ucfirst( $filtered ) ) { + + global $wgCapitalLinks; + if( $wgCapitalLinks ) { + $filtered = ucfirst( $filtered ); + } + if( $this->mUploadSaveName != $filtered ) { $warning .= '
  • '.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mUploadSaveName ) ).'
  • '; }