* (bug 3475) anon contrib links on Special:Newpages
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Sep 2005 00:17:34 +0000 (00:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Sep 2005 00:17:34 +0000 (00:17 +0000)
RELEASE-NOTES
includes/SpecialUpload.php

index 6541a09..d297597 100644 (file)
@@ -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 ===
index 3eda0f3..ec6d4c3 100644 (file)
@@ -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 .=  '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mUploadSaveName ) ).'</li>';
                        }