mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-12-02 02:06:03 +03:00
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();
|
$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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user