diff --git a/Classes/PHPExcel/Writer/Abstract.php b/Classes/PHPExcel/Writer/Abstract.php index 2a797a948..0c07fcebb 100644 --- a/Classes/PHPExcel/Writer/Abstract.php +++ b/Classes/PHPExcel/Writer/Abstract.php @@ -27,6 +27,7 @@ */ abstract class PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { + /** * Write charts that are defined in the workbook? * Identifies whether the Writer should write definitions for any charts that exist in the PHPExcel object; @@ -56,7 +57,7 @@ abstract class PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter * * @var string */ - protected $_diskCachingDirectory = './'; + protected $_diskCachingDirectory = './'; /** * Write charts in workbook? @@ -141,6 +142,8 @@ public function setUseDiskCaching($pValue = false, $pDirectory = null) } else { throw new PHPExcel_Writer_Exception("Directory does not exist: $pDirectory"); } + } else { + $this->_diskCachingDirectory = PHPExcel_Shared_File::sys_get_temp_dir(); } return $this; } @@ -154,4 +157,5 @@ public function getDiskCachingDirectory() { return $this->_diskCachingDirectory; } + }