Some small fixes.

This commit is contained in:
James Cole
2016-02-04 17:57:36 +01:00
parent dbd32abdd1
commit ee8c83bbd8
2 changed files with 4 additions and 9 deletions

View File

@@ -45,7 +45,8 @@ class AttachmentCollector extends BasicCollector implements CollectorInterface
if (file_exists($originalFile)) {
Log::debug('Stored 1 attachment');
$decrypted = Crypt::decrypt(file_get_contents($originalFile));
$newFile = storage_path('export') . DIRECTORY_SEPARATOR . $this->job->key . '-Attachment nr. ' . $attachment->id . ' - ' . $attachment->filename;
$newFile = storage_path('export') . DIRECTORY_SEPARATOR . $this->job->key . '-Attachment nr. ' . $attachment->id . ' - '
. $attachment->filename;
file_put_contents($newFile, $decrypted);
$this->getFiles()->push($newFile);
}