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