Commit 5a28e194 authored by Elias Villiger's avatar Elias Villiger
Browse files

Fixes #11146 Sendmail broken for generated pdf attachment

parent 453cce90
Pipeline #3800 passed with stages
in 4 minutes and 21 seconds
......@@ -636,8 +636,6 @@ class Download {
ERROR_MESSAGE_TO_DEVELOPER => "File: $filename"]), ERROR_IO_FILE_EXIST);
}
$filesCleanLater[] = $filename;
switch ($outputMode) {
case OUTPUT_MODE_FILE:
......@@ -645,10 +643,12 @@ class Download {
case OUTPUT_MODE_COPY_TO_FILE:
HelperFile::copy($filename, $vars[DOWNLOAD_EXPORT_FILENAME]);
HelperFile::cleanTempFiles($filename);
break;
case OUTPUT_MODE_DIRECT:
$this->outputFile($filename, $vars[DOWNLOAD_EXPORT_FILENAME]);
HelperFile::cleanTempFiles($filename);
$filename = '';
break;
......@@ -656,8 +656,6 @@ class Download {
throw new \CodeException('Unkown mode: ' . $outputMode, ERROR_UNKNOWN_MODE);
}
HelperFile::cleanTempFiles($filesCleanLater);
return $filename;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment