From 52099aabb2761aac67c4b8a46871e1a3d442dd3d Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Thu, 8 Nov 2012 09:29:55 +0000 Subject: [PATCH] Use temporary folder for temporary chart images in HTML Writer --- Classes/PHPExcel/Writer/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Writer/HTML.php b/Classes/PHPExcel/Writer/HTML.php index 762ed23d..46adb2ee 100644 --- a/Classes/PHPExcel/Writer/HTML.php +++ b/Classes/PHPExcel/Writer/HTML.php @@ -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; }