[Mapbender-commits] r2998 - in trunk/mapbender/http: javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Sep 24 10:08:59 EDT 2008
Author: verenadiewald
Date: 2008-09-24 10:08:59 -0400 (Wed, 24 Sep 2008)
New Revision: 2998
Modified:
trunk/mapbender/http/javascripts/mod_highlightPOI.php
trunk/mapbender/http/php/mod_meetingPoint.php
Log:
solution for ticket http://trac.osgeo.org/mapbender/ticket/299
Modified: trunk/mapbender/http/javascripts/mod_highlightPOI.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_highlightPOI.php 2008-09-24 14:03:34 UTC (rev 2997)
+++ trunk/mapbender/http/javascripts/mod_highlightPOI.php 2008-09-24 14:08:59 UTC (rev 2998)
@@ -67,14 +67,14 @@
function mod_highlightPOI_init(){
var myPOI = "<?php if (CHARSET == 'UTF-8'){
- echo utf8_encode($_SESSION['mb_myPOI']);
+ echo preg_replace("/\n/", "<br>", $_SESSION['mb_myPOI']);
}else{
- echo $_SESSION['mb_myPOI'];
+ echo preg_replace("/\n/", "<br>", utf8_decode($_SESSION['mb_myPOI']));
}
?>";
if(myPOI != ""){
- mod_highlightPOI_params = myPOI.split(",");
+ mod_highlightPOI_params = myPOI.split("|");
Modified: trunk/mapbender/http/php/mod_meetingPoint.php
===================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php 2008-09-24 14:03:34 UTC (rev 2997)
+++ trunk/mapbender/http/php/mod_meetingPoint.php 2008-09-24 14:08:59 UTC (rev 2998)
@@ -221,7 +221,7 @@
my_meetingPoint += encodeURIComponent(document.forms[0].mytext.value);
- my_meetingPoint += "," + document.forms[0].x.value + ",";
+ my_meetingPoint += "|" + document.forms[0].x.value + "|";
my_meetingPoint += document.forms[0].y.value;
if(meetingPoint_export_format == 'email'){
More information about the Mapbender_commits
mailing list