[Mapbender-commits] r8493 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 19 07:10:41 PDT 2012


Author: verenadiewald
Date: 2012-09-19 07:10:41 -0700 (Wed, 19 Sep 2012)
New Revision: 8493

Modified:
   trunk/mapbender/http/php/mod_loadwmc_server.php
Log:
bugfix for "loadWmcFromFile"

Modified: trunk/mapbender/http/php/mod_loadwmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_loadwmc_server.php	2012-09-19 14:09:55 UTC (rev 8492)
+++ trunk/mapbender/http/php/mod_loadwmc_server.php	2012-09-19 14:10:41 UTC (rev 8493)
@@ -84,7 +84,7 @@
 	case 'loadWmcFromFile':
 		$serverFilename = $ajaxResponse->getParameter("filename");
 		$wmc = new wmc();
-		$wmcDoc = file_get_contents(TMPDIR . "/" . $serverFilename);
+		$wmcDoc = file_get_contents($serverFilename->filename);
 		if (!$wmcDoc) {
 			$ajaxResponse->setMessage(_mb("WMC could not be loaded."));
 			$ajaxResponse->setSuccess(false);



More information about the Mapbender_commits mailing list