Commit 6a6bdb70 authored by Florian Azizian's avatar Florian Azizian

FIX #9681 do not delete all tmp file

parent 90124710
Pipeline #3031 failed with stage
in 2 minutes and 42 seconds
......@@ -84,13 +84,6 @@ class QRSeparator
$num_file++;
}
$files = glob(sys_get_temp_dir().'/*'); // get all file names
foreach ($files as $file) { // iterate files
if (is_file($file)) {
unlink($file);
} // delete file
}
echo "End of process ...\n";
$_SESSION['capture']->logEvent(
"End of process ..."
......@@ -99,7 +92,6 @@ class QRSeparator
public function split_pdf($filename, $end_directory)
{
$end_directory = $end_directory.'/';
/*
* Creation du repertoire split
......@@ -146,7 +138,6 @@ class QRSeparator
public function construct_pdf($split_directory, $end_directory = false)
{
$end_directory = $end_directory ? $end_directory : sys_get_temp_dir().'/';
//$new_pdf = new FPDI();
......
Markdown is supported
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