Commit 0d982560 authored by dopry's avatar dopry

#319114 by pasqualle, fix notices in field_file_save_file using variable names...

#319114 by pasqualle, fix notices in field_file_save_file using variable names copy and pasted from field_file_save_upload.
parent 0d18cd91
......@@ -175,8 +175,8 @@ function field_file_save_file($filepath, $validators = array(), $dest = FALSE, $
}
if (!file_copy($file, $file->destination, FILE_EXISTS_RENAME)) {
form_set_error($source, t('File upload error. Could not move uploaded file.'));
watchdog('file', 'Upload error. Could not move file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->filepath));
form_set_error($file->source, t('File upload error. Could not move uploaded file.'));
watchdog('file', 'Upload error. Could not move file %file to destination %destination.', array('%file' => $file->filename, '%destination' => $file->destination));
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment