Ask to use temp dir inside documents directory

This commit is contained in:
Laurent Destailleur
2009-02-11 01:39:14 +00:00
parent 33dac25ce4
commit e7fa358d27

View File

@@ -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();