X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/44ee8d9ce34a4a60113b6600dcc7b2f5b24c7a0e..626e3238f27d972614ad3c0e978605facf0f9bd2:/utils/query.php diff --git a/utils/query.php b/utils/query.php old mode 100755 new mode 100644 index 85ec8737..f8047ffc --- a/utils/query.php +++ b/utils/query.php @@ -1,7 +1,5 @@ -#!/usr/bin/php -Cq connect(); + $oParams = new Nominatim\ParameterParser($aCMDResult); if ($oParams->getBool('search')) { @@ -41,11 +41,7 @@ if ($oParams->getBool('search')) { $aSearchResults = $oGeocode->lookup(); - if (version_compare(phpversion(), "5.4.0", '<')) { - echo json_encode($aSearchResults); - } else { - echo json_encode($aSearchResults, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."\n"; - } + echo json_encode($aSearchResults, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."\n"; } else { showUsage($aCMDOptions, true); }