]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
use json_encode in search stuff as well
[nominatim.git] / lib / template / search-html.php
index 8b79e40c413c3351aa511718e87b4c38e50f89ee..89e4800be35fa76fbaf4a4964a7a40ccbadffcf0 100644 (file)
@@ -358,7 +358,7 @@ target="_blank">FAQ</a></td>
                        echo ', '.$aResult['aBoundingBox'][1];
                        echo ', '.$aResult['aBoundingBox'][2];
                        echo ', '.$aResult['aBoundingBox'][3];
-                       if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
+                       if (isset($aResult['aPolyPoints'])) echo ', '.json_encode($aResult['aPolyPoints']);
                        echo ');\'>';
                }
                elseif (isset($aResult['zoom']))