]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/deletable.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / website / deletable.php
index 2d7ee7e9b804db7d94b82a8f5f7227d33dda2248..2028cbdd8fa9c513cb7a48ccea21d6c1585e47ac 100644 (file)
@@ -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);
 }