(bug 17200) "Reuploading a file saves to source file name (regression)" - Use 'readon...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 28 Jan 2009 19:58:04 +0000 (19:58 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 28 Jan 2009 19:58:04 +0000 (19:58 +0000)
includes/specials/SpecialUpload.php

index 6d98d95..9f1c16b 100644 (file)
@@ -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 );