]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
Merge pull request #378 from mtmail/spaces-to-tabs
[nominatim.git] / website / reverse.php
index abc33a09ed297e382cc1d3862fc8147badc63e6f..e2dfaef80eeccdadae886f0611ba575e8a789584 100755 (executable)
@@ -23,7 +23,7 @@
 
        // Format for output
        $sOutputFormat = 'xml';
-       if (isset($_GET['format']) && ($_GET['format'] == 'xml' || $_GET['format'] == 'json' || $_GET['format'] == 'jsonv2'))
+       if (isset($_GET['format']) && ( $_GET['format'] == 'html' || $_GET['format'] == 'xml' || $_GET['format'] == 'json' || $_GET['format'] == 'jsonv2'))
        {
                $sOutputFormat = $_GET['format'];
        }
@@ -76,4 +76,6 @@
                exit;
        }
 
+       $sTileURL = CONST_Map_Tile_URL;
+       $sTileAttribution = CONST_Map_Tile_Attribution;
        include(CONST_BasePath.'/lib/template/address-'.$sOutputFormat.'.php');