Update api/v3/Attachment.php to remove concatenation
authorJosh Brown <joshbrown8159@gmail.com>
Wed, 5 Feb 2020 08:25:55 +0000 (08:25 +0000)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2020 08:25:55 +0000 (08:25 +0000)
Co-Authored-By: colemanw <coleman@civicrm.org>
api/v3/Attachment.php

index 13d90286e2fcc1f60d2983c11af657fc33dde477..b2834091f8d3ccc164183b8e254efc1da3f15a76 100644 (file)
@@ -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);
   }