- Patch #883400 by catch: file_unmanaged_copy() spits useless error message on fail.

merge-requests/26/head
Dries Buytaert 2010-08-16 21:06:53 +00:00
parent 03630c12e5
commit 88b2d8ed94
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ function file_unmanaged_copy($source, $destination = NULL, $replace = FILE_EXIST
file_ensure_htaccess();
// Perform the copy operation.
if (!@copy($source, $destination)) {
drupal_set_message(t('The specified file %file could not be copied.', array('%file' => $source)), 'error');
watchdog('file', 'The specified file %file could not be copied to %destination.', array('%file' => $source, '%destination' => $destination), WATCHDOG_ERROR);
return FALSE;
}