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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 24 11:46:32 EDT 2009


Author: vera
Date: 2009-06-24 11:46:31 -0400 (Wed, 24 Jun 2009)
New Revision: 4133

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

Modified: trunk/mapbender/http/php/mod_editApplication.php
===================================================================
--- trunk/mapbender/http/php/mod_editApplication.php	2009-06-24 15:43:11 UTC (rev 4132)
+++ trunk/mapbender/http/php/mod_editApplication.php	2009-06-24 15:46:31 UTC (rev 4133)
@@ -23,7 +23,7 @@
 
 $editApplicationId = $_REQUEST["editApplicationId"];
 
-$user = new User($_SESSION["mb_user_id"]);
+$user = new User(Mapbender::session()->get("mb_user_id"));
 $myApplicationArray = $user->getApplicationsByPermission(false);
 if (!in_array($editApplicationId, $myApplicationArray)) {
 	die("You are not allowed to edit the application '" . $editApplicationId . "'");	
@@ -164,7 +164,7 @@
 $sql .= "e_src,e_attributes,e_left,e_top,e_width,e_height,e_z_index,e_more_styles,";
 $sql .= "e_content,e_closetag,e_js_file,e_mb_mod,e_target,e_requires,e_url FROM gui_element WHERE ";
 $sql .= "e_public = 1 AND fkey_gui_id = $2 ORDER BY e_pos";
-$v = array($_SESSION["mb_lang"], $editApplicationId);
+$v = array(Mapbender::session()->get("mb_lang"), $editApplicationId);
 $t = array('s', 's');
 $res = db_prep_query($sql,$v,$t);
 $i = 0;



More information about the Mapbender_commits mailing list