[Mapbender-commits] r8492 - branches/2.7/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 19 07:09:55 PDT 2012


Author: verenadiewald
Date: 2012-09-19 07:09:55 -0700 (Wed, 19 Sep 2012)
New Revision: 8492

Modified:
   branches/2.7/http/php/mod_loadwmc_server.php
Log:
bugfix for "loadWmcFromFile"

Modified: branches/2.7/http/php/mod_loadwmc_server.php
===================================================================
--- branches/2.7/http/php/mod_loadwmc_server.php	2012-09-18 15:11:04 UTC (rev 8491)
+++ branches/2.7/http/php/mod_loadwmc_server.php	2012-09-19 14:09:55 UTC (rev 8492)
@@ -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