]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
Merge branch 'set-exception-handler-by-request-format' of https://github.com/mtmail...
[nominatim.git] / website / details.php
index c9e86312c9cc63a8c9da6954db45b214c9adff4e..81d643f052fd4c1438bca9711533957701c6ea09 100755 (executable)
@@ -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)).']';