]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-html.php
replace [] notation with old-style array()
[nominatim.git] / lib / template / address-html.php
index f8d425e20808f93e2e10d789f42fe9507eb4aa08..0645ba0c461ac8fa0e0b810ce7696e0e787b1831 100644 (file)
   <script type="text/javascript">
   <?php
 
-    $aNominatimMapInit = [
+    $aNominatimMapInit = array(
       'zoom' => isset($_GET['zoom']) ? htmlspecialchars($_GET['zoom']) : CONST_Default_Zoom,
       'lat'  => isset($_GET['lat'] ) ? htmlspecialchars($_GET['lat'] ) : CONST_Default_Lat,
       'lon'  => isset($_GET['lon'] ) ? htmlspecialchars($_GET['lon'] ) : CONST_Default_Lon,
       'tile_url' => $sTileURL,
       'tile_attribution' => $sTileAttribution
-    ];
+    );
     echo 'var nominatim_map_init = ' . json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) . ';';
 
     echo 'var nominatim_results = ' . json_encode([$aPlace], JSON_PRETTY_PRINT) . ';';