X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8c3a0efe8b75a06279998e66a932d8a56c483961..9e0d5cb669a84099f080b2ed6ee224c521fd7d29:/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); }