]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/admin/setup.php
move website into php library directory
[nominatim.git] / lib / admin / setup.php
index 713fe561b38df95ce87d462e3ec98f9f4cd28bfe..241b873caffc919f1ecf55bcfa6f4e09132b2ac3 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+@define('CONST_LibDir', dirname(dirname(__FILE__)));
 
 require_once(CONST_LibDir.'/init-cmd.php');
 require_once(CONST_LibDir.'/setup/SetupClass.php');
@@ -118,10 +119,7 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) {
 
 if ($aCMDResult['import-tiger-data']) {
     $bDidSomething = true;
-    $sTigerPath = getSetting('TIGER_DATA_PATH');
-    if (!$sTigerPath) {
-        $sTigerPath = CONST_DataDir.'/data/tiger';
-    }
+    $sTigerPath = getSetting('TIGER_DATA_PATH', CONST_InstallDir.'/tiger');
     $oSetup->importTigerData($sTigerPath);
 }