X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b7abc8566ed5b67ddbbfed7e10701b4838008f6b..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)).']';