From: Aaron Schulz Date: Wed, 28 Jan 2009 19:58:04 +0000 (+0000) Subject: (bug 17200) "Reuploading a file saves to source file name (regression)" - Use 'readon... X-Git-Tag: 1.31.0-rc.0~43165 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=1a56a174213d9fe6153fa498669740604d9899ae;p=lhc%2Fweb%2Fwiklou.git (bug 17200) "Reuploading a file saves to source file name (regression)" - Use 'readonly' instead of 'disabled' --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 6d98d959cd..9f1c16b67f 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1123,7 +1123,7 @@ wgUploadAutoFill = {$autofill}; $destOnkeyup = ''; } # Uploading a new version? If so, the name is fixed. - $on = $this->mReUpload ? "disabled='disabled'" : ""; + $on = $this->mReUpload ? "readonly='readonly'" : ""; $encComment = htmlspecialchars( $this->mComment );