Quick workaround for bug 3131 (don't fill destname from sourcename if we've been...
authorRowan Collins <imsop@users.mediawiki.org>
Sat, 3 Sep 2005 10:41:12 +0000 (10:41 +0000)
committerRowan Collins <imsop@users.mediawiki.org>
Sat, 3 Sep 2005 10:41:12 +0000 (10:41 +0000)
Probably needs a more thorough redesign, but this'll do as a "hotfix".

includes/SpecialUpload.php

index 518d8b8..951b23b 100644 (file)
@@ -574,7 +574,7 @@ class UploadForm {
        <table border='0'><tr>
 
        <td align='right'>{$sourcefilename}:</td><td align='left'>
-       <input tabindex='1' type='file' name='wpUploadFile' id='wpUploadFile' onchange='fillDestFilename()' size='40' />
+       <input tabindex='1' type='file' name='wpUploadFile' id='wpUploadFile' " . ($this->mDestFile?"":"onchange='fillDestFilename()' ") . "size='40' />
        </td></tr><tr>
 
        <td align='right'>{$destfilename}:</td><td align='left'>