summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-16 21:06:53 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-16 21:06:53 +0000
commit88b2d8ed9402d0150d63cd5061932143bbcf1cef (patch)
treef79fbe9245dba86f026cc894b4a92ae718341aa8
parent03630c12e556a5f715b735428d4951f7bde31dc4 (diff)
downloadbrdo-88b2d8ed9402d0150d63cd5061932143bbcf1cef.tar.gz
brdo-88b2d8ed9402d0150d63cd5061932143bbcf1cef.tar.bz2
- Patch #883400 by catch: file_unmanaged_copy() spits useless error message on fail.
-rw-r--r--includes/file.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 68c16c109..a09751574 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -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;
}