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:
parent
0b10eb6d7d
commit
28e39a8291
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue