X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3134fb8b407cbf6dd6a2f0241435d4b0f50ff98e..f24b904f9ad744a0d79de98588f13ead918981c5:/utils/imports.php diff --git a/utils/imports.php b/utils/imports.php index 332e5b31..70a24963 100755 --- a/utils/imports.php +++ b/utils/imports.php @@ -3,7 +3,6 @@ require_once(dirname(dirname(__FILE__)).'/lib/init-cmd.php'); ini_set('memory_limit', '800M'); - $sDefaultDataPath = CONST_BasePath.'/data/tiger2014'; $aCMDOptions = array( "Create and setup nominatim search system", @@ -18,7 +17,7 @@ if (isset($aCMDResult['parse-tiger'])) { - if (!file_exists($sDefaultDataPath)) mkdir($sDefaultDataPath); + if (!file_exists(CONST_Tiger_Data_Path)) mkdir(CONST_Tiger_Data_Path); $sTempDir = tempnam('/tmp', 'tiger'); unlink($sTempDir); @@ -48,7 +47,7 @@ } else { - copy($sOsmFile, $sDefaultDataPath.'/'.$sCountyID.'.sql'); + copy($sOsmFile, CONST_Tiger_Data_Path.'/'.$sCountyID.'.sql'); } } // Cleanup