X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7a964efb3a104e304be7620dc18fa123559f05c8..2d1337e19077f5a9ac3e2f07a9c54282a7f38e28:/website/search.php diff --git a/website/search.php b/website/search.php old mode 100755 new mode 100644 index 0ebf1814..696cdf73 --- a/website/search.php +++ b/website/search.php @@ -1,7 +1,5 @@ getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'html'); +set_exception_handler_by_format($sOutputFormat); $sForcedGeometry = ($sOutputFormat == 'html') ? 'geojson' : null; $oGeocode->loadParamArray($oParams, $sForcedGeometry);