]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
switch attributions to ODbL
[nominatim.git] / lib / template / search-xml.php
index 0521de0ec960c1f1a9b53d18e8d6b6d31672dc9e..bdf1eab53ae93b19a8f04eca3b7ac83d6e8e4be1 100644 (file)
@@ -8,7 +8,7 @@
 
        echo "<searchresults";
        echo " timestamp='".date(DATE_RFC822)."'";
 
        echo "<searchresults";
        echo " timestamp='".date(DATE_RFC822)."'";
-       echo " attribution='Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.'";
+       echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'";
        echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
        if (isset($sViewBox)) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
        echo " polygon='".($bShowPolygons?'true':'false')."'";
        echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
        if (isset($sViewBox)) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
        echo " polygon='".($bShowPolygons?'true':'false')."'";
@@ -45,7 +45,7 @@
                        if ($bShowPolygons && isset($aResult['aPolyPoints']))
                        {
                                echo ' polygonpoints=\'';
                        if ($bShowPolygons && isset($aResult['aPolyPoints']))
                        {
                                echo ' polygonpoints=\'';
-                               echo javascript_renderData($aResult['aPolyPoints']);
+                               echo json_encode($aResult['aPolyPoints']);
                                echo '\'';
                        }
                }
                                echo '\'';
                        }
                }