Use temporary folder for temporary chart images in HTML Writer

This commit is contained in:
Mark Baker 2012-11-08 09:29:55 +00:00
parent e0cb9c5c3c
commit 52099aabb2
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_
$chartCoordinates = $chart->getTopLeftPosition(); $chartCoordinates = $chart->getTopLeftPosition();
if ($chartCoordinates['cell'] == $coordinates) { if ($chartCoordinates['cell'] == $coordinates) {
// $chartFileName = tempnam(PHPExcel_Shared_File::sys_get_temp_dir(),'xlc'); // $chartFileName = tempnam(PHPExcel_Shared_File::sys_get_temp_dir(),'xlc');
$chartFileName = './'.uniqid().'.png'; $chartFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/'.uniqid().'.png';
if (!$chart->render($chartFileName)) { if (!$chart->render($chartFileName)) {
return; return;
} }