mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 22:41:30 +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)
|
function open_file($file,$outputlangs)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$outputlangs->charset_output='ISO-8859-1'; // Because Excel 5 format is ISO
|
$outputlangs->charset_output='ISO-8859-1'; // Because Excel 5 format is ISO
|
||||||
|
|
||||||
@@ -122,6 +122,7 @@ class ExportExcel extends ModeleExports
|
|||||||
|
|
||||||
$outputlangs->load("exports");
|
$outputlangs->load("exports");
|
||||||
$this->workbook = &new writeexcel_workbookbig($file);
|
$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->workbook->set_sheetname($outputlangs->trans("Sheet"));
|
||||||
$this->worksheet = &$this->workbook->addworksheet();
|
$this->worksheet = &$this->workbook->addworksheet();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user