remove HTML output and UI elements

This commit is contained in:
Sarah Hoffmann
2020-10-27 11:05:03 +01:00
parent b838f66dd7
commit c0d21d0bd3
3252 changed files with 15 additions and 2435 deletions

View 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);
$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);
}