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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 06:10:08 EDT 2009


Author: vera
Date: 2009-06-25 06:10:07 -0400 (Thu, 25 Jun 2009)
New Revision: 4194

Modified:
   trunk/mapbender/http/php/mod_savewmc_server.php
Log:
session var angepasst

Modified: trunk/mapbender/http/php/mod_savewmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_savewmc_server.php	2009-06-25 09:57:33 UTC (rev 4193)
+++ trunk/mapbender/http/php/mod_savewmc_server.php	2009-06-25 10:10:07 UTC (rev 4194)
@@ -26,7 +26,7 @@
 
 // get data from POST and SESSION
 $mapObject = $json->decode(stripslashes($_POST["mapObject"]));
-$userId = $_SESSION["mb_user_id"];
+$userId = Mapbender::session()->get("mb_user_id");
 $saveInSession = intval($_POST["saveInSession"]);
 $generalTitle = $_POST["generalTitle"];
 $extensionData = $json->decode(stripslashes($_POST["extensionData"]));
@@ -39,9 +39,10 @@
 
 if ($saveInSession === 1) {
 	// store XML in session
-	$_SESSION["mb_wmc"] = $wmc->xml;
-	$_SESSION["epsg"] = $mapObject->epsg;
-	$_SESSION["previous_gui"] = $_SESSION["mb_user_gui"];
+	Mapbender::session()->set("mb_wmc",$wmc->xml);
+	Mapbender::session()->set("epsg",$mapObject->epsg);
+	Mapbender::session()->set("previous_gui", Mapbender::session()->get("mb_user_gui"));
+	
 	$e = new mb_notice("mod_insertWMCIntoDB: save WMC in session succeeded.");
 }
 else {



More information about the Mapbender_commits mailing list