Some code fixes.

This commit is contained in:
James Cole
2016-09-17 09:50:40 +02:00
parent 6e33e26ddf
commit 5ca9099654
9 changed files with 29 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ class AttachmentHelper implements AttachmentHelperInterface
*/
public function getAttachmentLocation(Attachment $attachment): string
{
$path = storage_path('upload') . DIRECTORY_SEPARATOR . 'at-' . $attachment->id . '.data';
$path = sprintf('%s%sat-%d.data', storage_path('upload'), DIRECTORY_SEPARATOR, $attachment->id);
return $path;
}