From cecec98e43fa45b57327f1ab0d27f580634d16ca Mon Sep 17 00:00:00 2001 From: Josh Brown Date: Wed, 5 Feb 2020 08:25:55 +0000 Subject: [PATCH] Update api/v3/Attachment.php to remove concatenation Co-Authored-By: colemanw --- api/v3/Attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Attachment.php b/api/v3/Attachment.php index 13d90286e2..b2834091f8 100644 --- a/api/v3/Attachment.php +++ b/api/v3/Attachment.php @@ -147,7 +147,7 @@ function civicrm_api3_attachment_create($params) { // CRM-17432 Do not use rename() since it will break file permissions. // Also avoid move_uploaded_file() because the API can use options.move-file. if (!copy($moveFile, $path)) { - throw new API_Exception("Cannot copy uploaded file ".$moveFile." to ".$path); + throw new API_Exception("Cannot copy uploaded file $moveFile to $path"); } unlink($moveFile); } -- 2.25.1