X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fae8da2bcb78d6020231b42a5a3f2444b64755eb..75f951d254127d8857b6ad95cac241917f88e542:/website/polygons.php diff --git a/website/polygons.php b/website/polygons.php index e5d459f3..00e043bd 100644 --- a/website/polygons.php +++ b/website/polygons.php @@ -12,7 +12,8 @@ $iDays = $oParams->getInt('days', false); $bReduced = $oParams->getBool('reduced', false); $sClass = $oParams->getString('class', false); -$oDB =& getDB(); +$oDB = new Nominatim\DB(); +$oDB->connect(); $iTotalBroken = (int) chksql($oDB->getOne('select count(*) from import_polygon_error'));