]> git.openstreetmap.org Git - nominatim.git/commitdiff
use correct viewbox variable in search XML
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 10 Apr 2013 18:33:10 +0000 (20:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 10 Apr 2013 18:33:10 +0000 (20:33 +0200)
lib/template/search-xml.php

index be05cb40c85b336b44bb241f9b80fac39a0c0c09..b78c23eab869f63654b181db6d89092c67370d58 100644 (file)
@@ -9,7 +9,7 @@
        echo " timestamp='".date(DATE_RFC822)."'";
        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)."'";
+       if (isset($_GET['viewbox']) && $_GET['viewbox']) echo " viewbox='".htmlspecialchars($_GET['viewbox'], ENT_QUOTES)."'";
        echo " polygon='".($bShowPolygons?'true':'false')."'";
        if (sizeof($aExcludePlaceIDs))
        {