[fusion-commits] r2498 - sandbox/adsk/2.4j/widgets/QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 29 04:12:51 EST 2011
Author: liuar
Date: 2011-12-29 01:12:51 -0800 (Thu, 29 Dec 2011)
New Revision: 2498
Modified:
sandbox/adsk/2.4j/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: sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php 2011-12-29 09:08:39 UTC (rev 2497)
+++ sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php 2011-12-29 09:12:51 UTC (rev 2498)
@@ -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: sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php
___________________________________________________________________
Modified: svn:mergeinfo
- /sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php:2490
/sandbox/jxlib-3.0/widgets/QuickPlot/GeneratePicture.php:1957-2248
+ /sandbox/adsk/2.4j/widgets/QuickPlot/GeneratePicture.php:2490
/sandbox/adsk/2.4jbeta2/widgets/QuickPlot/GeneratePicture.php:2488-2497
/sandbox/jxlib-3.0/widgets/QuickPlot/GeneratePicture.php:1957-2248
/trunk/widgets/QuickPlot/GeneratePicture.php:2486-2487
More information about the fusion-commits
mailing list