X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e4a51e460e0e7020fed0eeeb8b6cce7148e0bb58..890d415e1ffd997d11ed35dee04cb01b94ca133f:/lib/init-website.php?ds=sidebyside diff --git a/lib/init-website.php b/lib/init-website.php index ae2a5d36..67fb52d1 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -2,7 +2,6 @@ require_once('init.php'); require_once('ParameterParser.php'); -require_once('DatabaseError.php'); require_once(CONST_Debug ? 'DebugHtml.php' : 'DebugNone.php'); /*************************************************************************** @@ -11,15 +10,6 @@ require_once(CONST_Debug ? 'DebugHtml.php' : 'DebugNone.php'); * */ - -function chksql($oSql, $sMsg = 'Database request failed') -{ - if (!PEAR::isError($oSql)) return $oSql; - - throw new Nominatim\DatabaseError($sMsg, 500, null, $oSql); -} - - function userError($sMsg) { throw new Exception($sMsg, 400);