]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/imports.php
Merge branch 'mobile-responsive' of https://github.com/mtmail/Nominatim into mobile...
[nominatim.git] / utils / imports.php
index 332e5b3131d04479f989e0f354cac303ec5461ee..70a24963fa57f2f5338174dfe890965f12fb0057 100755 (executable)
@@ -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