X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a4192d3d18e9db2dce7d8f9f1b229d5ae9f7c6f..89b2d909a92ca125da0a764dbeb2f5e3c18fe194:/website/polygons.php diff --git a/website/polygons.php b/website/polygons.php index c5fbafc2..9c657a1d 100644 --- a/website/polygons.php +++ b/website/polygons.php @@ -6,7 +6,7 @@ require_once(CONST_BasePath.'/lib/output.php'); ini_set('memory_limit', '200M'); $oParams = new Nominatim\ParameterParser(); -$sOutputFormat = $oParams->getSet('format', array('html', 'json'), 'html'); +$sOutputFormat = $oParams->getSet('format', array('json'), 'json'); set_exception_handler_by_format($sOutputFormat); $iDays = $oParams->getInt('days', false); @@ -47,7 +47,5 @@ if (CONST_Debug) { } if ($sOutputFormat == 'json') { - echo javascript_renderData($aPolygons); -} else { - include(CONST_BasePath.'/lib/template/polygons-html.php'); + javascript_renderData($aPolygons); }