[Mapbender-commits] r1292 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu May 3 16:55:19 EDT 2007


Author: marko
Date: 2007-05-03 16:55:18 -0400 (Thu, 03 May 2007)
New Revision: 1292

Modified:
   trunk/mapbender/http/print/mod_printPDF_pdf.php
Log:
added string replacement for legend-urls

Modified: trunk/mapbender/http/print/mod_printPDF_pdf.php
===================================================================
--- trunk/mapbender/http/print/mod_printPDF_pdf.php	2007-05-03 10:23:25 UTC (rev 1291)
+++ trunk/mapbender/http/print/mod_printPDF_pdf.php	2007-05-03 20:55:18 UTC (rev 1292)
@@ -564,7 +564,13 @@
 	$my_wms_id = explode("___",$_REQUEST["wms_id"]);
 	$my_wms_title = explode("___",$new_wms_title);
 	$my_layers = explode("___",$new_layers);
-	$my_legend = explode("___",$_REQUEST["legendurl"]);
+	if($matching == true){
+        $my_legend = str_replace($pattern,$replacement,$_REQUEST["legendurl"]);  
+    }
+    else{
+        $my_legend = $_REQUEST["legendurl"];
+    }
+    $my_legend = explode("___",$my_legend);
 
 	//frames (x1, y1, x2, y2)
 	if($size == "A4" && $format == "portrait"){



More information about the Mapbender_commits mailing list