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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 06:11:57 EDT 2009


Author: vera
Date: 2009-06-25 06:11:56 -0400 (Thu, 25 Jun 2009)
New Revision: 4195

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

Modified: trunk/mapbender/http/php/mod_setLocale.php
===================================================================
--- trunk/mapbender/http/php/mod_setLocale.php	2009-06-25 10:10:07 UTC (rev 4194)
+++ trunk/mapbender/http/php/mod_setLocale.php	2009-06-25 10:11:56 UTC (rev 4195)
@@ -20,8 +20,9 @@
 require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 require_once(dirname(__FILE__) . "/../classes/class_locale.php");
 
-$_SESSION["mb_lang"] = $_REQUEST["lang"];
-$localeObj = new Mb_locale($_SESSION["mb_lang"]);
+Mapbender::session()->set("mb_lang", Mapbender::session()->get("lang"));
+
+$localeObj = new Mb_locale(Mapbender::session()->get("mb_lang"));
 session_write_close();
 
 header("Content-type='text/plain';Charset=utf-8");



More information about the Mapbender_commits mailing list