From 1133ba2d29bf468ca112a3f7aa04d92973e6515f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 12 Jan 2009 23:58:07 +0000 Subject: [PATCH] Remove this ucfirst() crap. $filtered is already a DB key, so it should've been normalized at Title construction anyway (and if it wasn't, that's Title's fault). Fwiw: we're throwing a dismissable error every time $wgCapitalLinks is enabled and a lowercase name is submitted. Why bother? We handle this silently everywhere else... --- includes/specials/SpecialUpload.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 3e2c02ad62..51f31c4155 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -508,11 +508,6 @@ class UploadForm { $warning .= '
  • '.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mDestName ) ).'
  • '; } - global $wgCapitalLinks; - if( $wgCapitalLinks ) { - $filtered = ucfirst( $filtered ); - } - global $wgCheckFileExtensions; if ( $wgCheckFileExtensions ) { if ( !$this->checkFileExtension( $finalExt, $wgFileExtensions ) ) { -- 2.20.1