merge json and jsonv2 templates, they were very similar

This commit is contained in:
Marc Tobias Metten
2018-03-10 01:30:22 +01:00
committed by Sarah Hoffmann
parent c04541b4da
commit 88beeb7916
6 changed files with 28 additions and 131 deletions

View File

@@ -76,4 +76,6 @@ if ($sOutputFormat == 'html') {
$sTileURL = CONST_Map_Tile_URL;
$sTileAttribution = CONST_Map_Tile_Attribution;
}
include(CONST_BasePath.'/lib/template/address-'.$sOutputFormat.'.php');
$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat);
include(CONST_BasePath.'/lib/template/address-'.$sOutputTemplate.'.php');

View File

@@ -81,4 +81,5 @@ $sMoreURL = CONST_Website_BaseURL.'search.php?'.http_build_query($aMoreParams);
if (CONST_Debug) exit;
include(CONST_BasePath.'/lib/template/search-'.$sOutputFormat.'.php');
$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat);
include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php');