X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/b838f66dd7d43826057650c63fe62c4d69fd6682..c0d21d0bd3ec04d340c2e716a9f9482d36dff310:/website/deletable.php diff --git a/website/deletable.php b/website/deletable.php index 2d7ee7e9..2028cbdd 100644 --- a/website/deletable.php +++ b/website/deletable.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); $oDB = new Nominatim\DB(); @@ -24,7 +24,5 @@ if (CONST_Debug) { } if ($sOutputFormat == 'json') { - echo javascript_renderData($aPolygons); -} else { - include(CONST_BasePath.'/lib/template/deletable-html.php'); + javascript_renderData($aPolygons); }