From 88b2d8ed9402d0150d63cd5061932143bbcf1cef Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Aug 2010 21:06:53 +0000 Subject: [PATCH] - Patch #883400 by catch: file_unmanaged_copy() spits useless error message on fail. --- includes/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/file.inc b/includes/file.inc index 68c16c109c3..a09751574bf 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; }