mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
Ask to use temp dir inside documents directory
This commit is contained in:
@@ -112,7 +112,7 @@ class ExportExcel extends ModeleExports
|
||||
*/
|
||||
function open_file($file,$outputlangs)
|
||||
{
|
||||
global $langs;
|
||||
global $conf,$langs;
|
||||
|
||||
$outputlangs->charset_output='ISO-8859-1'; // Because Excel 5 format is ISO
|
||||
|
||||
@@ -122,6 +122,7 @@ class ExportExcel extends ModeleExports
|
||||
|
||||
$outputlangs->load("exports");
|
||||
$this->workbook = &new writeexcel_workbookbig($file);
|
||||
$this->workbook->set_tempdir($conf->export->dir_temp); // Set temporary directory
|
||||
$this->workbook->set_sheetname($outputlangs->trans("Sheet"));
|
||||
$this->worksheet = &$this->workbook->addworksheet();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user