Fixed the file renaming bug that I introduced.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-10-08 14:59:52 +00:00
parent 0b10eb6d7d
commit 28e39a8291
1 changed files with 4 additions and 4 deletions

View File

@ -76,9 +76,8 @@ case '':
</div><?php
break;
case 'upload':
?>
<?php //Makes sure they choose a file
//Makes sure they choose a file
//print_r($_FILES);
//die();
@ -99,7 +98,7 @@ case 'upload':
if (strlen($imgalt)) {
$pathtofile = get_settings('fileupload_realpath')."/".$imgalt;
$img1 = $_POST['img1']['tmp_name'];
$img1 = $_POST['img1'];
} else {
$pathtofile = get_settings('fileupload_realpath')."/".$img1_name;
$img1 = $_FILES['img1']['tmp_name'];
@ -158,6 +157,7 @@ case 'upload':
</form>
</div>
<?php
require('admin-footer.php');
die();