X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2d1337e19077f5a9ac3e2f07a9c54282a7f38e28..75f951d254127d8857b6ad95cac241917f88e542:/website/polygons.php?ds=sidebyside 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'));