From: Josh Brown Date: Wed, 5 Feb 2020 08:25:55 +0000 (+0000) Subject: Update api/v3/Attachment.php to remove concatenation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cecec98e43fa45b57327f1ab0d27f580634d16ca;p=civicrm-core.git Update api/v3/Attachment.php to remove concatenation Co-Authored-By: colemanw --- 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); }