[fusion-commits] r2499 - trunk/widgets/QuickPlot

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Dec 29 04:14:18 EST 2011


Author: liuar
Date: 2011-12-29 01:14:18 -0800 (Thu, 29 Dec 2011)
New Revision: 2499

Modified:
   trunk/widgets/QuickPlot/GeneratePicture.php
Log:
On behalf of Mars Wu
Integrate changeset 2497: http://trac.osgeo.org/fusion/changeset/2497 
========================
For ticket: http://trac.osgeo.org/mapguide/ticket/1887
The php function tempnam() doesn't work on IIS... The returned value is nothing.
Then fix the problem in another more straight way:
$tempImage = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "mgo" . uniqid();
DIRECTORY_SEPARATOR is a php variable which will handle the path separator for Windows and Linux

Modified: trunk/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- trunk/widgets/QuickPlot/GeneratePicture.php	2011-12-29 09:12:51 UTC (rev 2498)
+++ trunk/widgets/QuickPlot/GeneratePicture.php	2011-12-29 09:14:18 UTC (rev 2499)
@@ -122,7 +122,7 @@
                                                 "PNG",
                                                 false);
 
-        $tempImage = sys_get_temp_dir() . uniqid();
+        $tempImage = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "mgo" . uniqid();
         $mgReader->ToFile($tempImage);
         $image = imagecreatefrompng($tempImage);
         unlink($tempImage);


Property changes on: trunk/widgets/QuickPlot/GeneratePicture.php
___________________________________________________________________
Added: svn:mergeinfo
   + /sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php:2488-2498
/sandbox/jxlib-3.0/widgets/QuickPlot/GeneratePicture.php:1957-2248
/trunk/widgets/QuickPlot/GeneratePicture.php:2469-2487



More information about the fusion-commits mailing list