]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/deletable.php
pytest may also be installed as py-test[-3]
[nominatim.git] / website / deletable.php
index 2028cbdd8fa9c513cb7a48ccea21d6c1585e47ac..81fb4f99d35eeefb13ef16bd19f25708f1de0ad3 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
-require_once(CONST_BasePath.'/lib/init-website.php');
-require_once(CONST_BasePath.'/lib/log.php');
-require_once(CONST_BasePath.'/lib/output.php');
+require_once(CONST_LibDir.'/init-website.php');
+require_once(CONST_LibDir.'/log.php');
+require_once(CONST_LibDir.'/output.php');
 ini_set('memory_limit', '200M');
 
 $oParams = new Nominatim\ParameterParser();
 $sOutputFormat = $oParams->getSet('format', array('json'), 'json');
 set_exception_handler_by_format($sOutputFormat);
 
-$oDB = new Nominatim\DB();
+$oDB = new Nominatim\DB(CONST_Database_DSN);
 $oDB->connect();
 
 $sSQL = 'select placex.place_id, country_code,';