From: hickert Date: Thu, 8 May 2008 07:01:34 +0000 (+0000) Subject: Replaced /tmp with "CACHE_DIR" constant X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88fd30ae296f0f8f937197af64db8d463d77f1d8;p=gosa.git Replaced /tmp with "CACHE_DIR" constant git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10840 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 736db99cf..0b7b0cedb 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -24,6 +24,7 @@ define ("CONFIG_DIR", "/etc/gosa"); define ("CONFIG_FILE", "gosa.conf"); define ("CONFIG_TEMPLATE_DIR", "../contrib/"); +define ("CACHE_DIR","/var/cache/gosa/tmp"); /* Define get_list flags */ define("GL_NONE", 0); diff --git a/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php b/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php index cdaac1557..634f93638 100644 --- a/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php +++ b/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php @@ -482,8 +482,8 @@ function _store_workbook() { function _store_OLE_file() { ## ABR if ($this->_tmpfilename != '') { - $OLE = new writeexcel_olewriter('/tmp/'.$this->_tmpfilename); - $OLE->_OLEtmpfilename = '/tmp/'.$this->_tmpfilename; + $OLE = new writeexcel_olewriter(CACHE_DIR.'/tmp/'.$this->_tmpfilename); + $OLE->_OLEtmpfilename = CACHE_DIR.$this->_tmpfilename; } else { $OLE = new writeexcel_olewriter($this->_filename); $OLE->_OLEtmpfilename = '';