X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/b20a534e0c253e9371377efe75b4682b5070ffa3..d4b633bfc50188f36e3c4a8b2b99c3a0e6a7f12e:/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'));