Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Changed disk cache default dir to system temp dir #587

Open
wants to merge 1 commit into
base: 1.8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Classes/PHPExcel/Writer/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -56,7 +57,7 @@ abstract class PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
*
* @var string
*/
protected $_diskCachingDirectory = './';
protected $_diskCachingDirectory = './';

/**
* Write charts in workbook?
Expand Down Expand Up @@ -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;
}
Expand All @@ -154,4 +157,5 @@ public function getDiskCachingDirectory()
{
return $this->_diskCachingDirectory;
}

}