Fix export csv

This commit is contained in:
MatteoPistorello 2021-09-10 17:24:15 +02:00
parent cc9f399acc
commit 528a2c7c52
1 changed files with 2 additions and 2 deletions

View File

@ -550,11 +550,11 @@ if (!function_exists('temp_file')) {
// $base_directory = trim(sys_get_temp_dir(), DIRECTORY_SEPARATOR);
$base_directory = implode(DIRECTORY_SEPARATOR, [
trim(base_dir(), DIRECTORY_SEPARATOR),
rtrim(base_dir(), DIRECTORY_SEPARATOR),
'files',
'temp',
]);
$file = trim($base_directory, DIRECTORY_SEPARATOR).
$file = rtrim($base_directory, DIRECTORY_SEPARATOR).
DIRECTORY_SEPARATOR.
ltrim($name, DIRECTORY_SEPARATOR);