X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1cb55c6e318cb86cd1d44463eff4b951496134c0..38e40cd01440bc6d98fd16bcf8e0598695957830:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index cc8a90e0..1959ded3 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -94,7 +94,7 @@ return ($a['foundorder'] < $b['foundorder']?-1:1); } - function getPrefferedLangauges() + function getPreferredLanguages() { // If we have been provided the value in $_GET it overrides browser value if (isset($_GET['accept-language']) && $_GET['accept-language']) @@ -273,7 +273,7 @@ return false; /* - $fTotalFac is a suprisingly good indicator of accuracy + $fTotalFac is a surprisingly good indicator of accuracy $iZoom = 18 + round(log($fTotalFac,32)); $iZoom = max(13,min(18,$iZoom)); */ @@ -597,7 +597,7 @@ { header("Access-Control-Allow-Origin: *"); - $jsonout = json_encode($xVal, JSON_UNESCAPED_UNICODE); + $jsonout = json_encode($xVal); if( ! isset($_GET['json_callback'])) { header("Content-Type: application/json; charset=UTF-8");