X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0e4f80bf1bcedcb595a844ff7e1b6fd106ca2356..4e2fe6427ce03a0ed3c5fdfe384f7867ef52fcca:/website/details.php?ds=sidebyside diff --git a/website/details.php b/website/details.php index c9e86312..81d643f0 100755 --- a/website/details.php +++ b/website/details.php @@ -11,6 +11,7 @@ ini_set('memory_limit', '200M'); $oParams = new Nominatim\ParameterParser(); $sOutputFormat = $oParams->getSet('format', array('html', 'json'), 'html'); +set_exception_handler_by_format($sOutputFormat); $aLangPrefOrder = $oParams->getPreferredLanguages(); $sLanguagePrefArraySQL = 'ARRAY['.join(',', array_map('getDBQuoted', $aLangPrefOrder)).']';