]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/deletable.php
reorganise path settings in config
[nominatim.git] / website / deletable.php
index 2d7ee7e9b804db7d94b82a8f5f7227d33dda2248..9a0ea0d859a9a7927e343a09aafbaceffca68cc7 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-require_once(CONST_BasePath.'/lib/init-website.php');
-require_once(CONST_BasePath.'/lib/log.php');
-require_once(CONST_BasePath.'/lib/output.php');
+require_once(CONST_LibDir.'/init-website.php');
+require_once(CONST_LibDir.'/log.php');
+require_once(CONST_LibDir.'/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);
 }