Use correct var. Props Nazgul. fixes #3182

git-svn-id: http://svn.automattic.com/wordpress/trunk@4266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-10-02 18:27:11 +00:00
parent 8a4b655453
commit 2f93dc5e8c
1 changed files with 1 additions and 1 deletions

View File

@ -1896,7 +1896,7 @@ function wp_handle_upload(&$file, $overrides = false) {
// Move the file to the uploads dir
$new_file = $uploads['path'] . "/$filename";
if ( false === @ move_uploaded_file($file['tmp_name'], $new_file) )
wp_die(printf(__('The uploaded file could not be moved to %s.'), $file['path']));
wp_die(printf(__('The uploaded file could not be moved to %s.'), $uploads['path']));
// Set correct file permissions
$stat = stat(dirname($new_file));