Use temporary folder for temporary chart images in HTML Writer
This commit is contained in:
parent
e0cb9c5c3c
commit
52099aabb2
|
@ -639,7 +639,7 @@ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_
|
|||
$chartCoordinates = $chart->getTopLeftPosition();
|
||||
if ($chartCoordinates['cell'] == $coordinates) {
|
||||
// $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)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue