From 286deb81ecc1569a08ab25c13762dda7a24ce9f7 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 7 Jan 2013 22:14:37 -0500 Subject: [PATCH] Issue #1815930 by slashrsm, gbrands, amontero: Fixed Update watchdog message in file_unmanaged_copy() with correct string/variable replacement values. --- includes/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/file.inc b/includes/file.inc index c65d6e97c3d..09a44243515 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -892,7 +892,7 @@ function file_unmanaged_copy($source, $destination = NULL, $replace = FILE_EXIST $destination = file_destination($destination, $replace); if ($destination === FALSE) { drupal_set_message(t('The file %file could not be copied because a file by that name already exists in the destination directory.', array('%file' => $original_source)), 'error'); - watchdog('file', 'File %file could not be copied because a file by that name already exists in the destination directory (%directory)', array('%file' => $original_source, '%destination' => $destination)); + watchdog('file', 'File %file could not be copied because a file by that name already exists in the destination directory (%directory)', array('%file' => $original_source, '%directory' => $destination)); return FALSE; }