X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6f442b6617dc30729b7657f3e5e6e5dfb57e6ac0..d45524cbfb299f5004a03c52802c64749c5ad212:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 75e72b4c..fc393685 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -39,13 +39,6 @@ exit; } - function getParamBool($name, $default=false) - { - if (!isset($_GET[$name])) return $default; - - return (bool) $_GET[$name]; - } - function fail($sError, $sUserError = false) { if (!$sUserError) $sUserError = $sError; @@ -592,7 +585,6 @@ function javascript_renderData($xVal, $iOptions = 0) { - header("Access-Control-Allow-Origin: *"); if (defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50400) $iOptions |= JSON_UNESCAPED_UNICODE; $jsonout = json_encode($xVal, $iOptions);