X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3238682a8867edfb3c052ca4d2d27b3926ad17a..3cdfe066336ad19772d300a85d6c1feaadc074ea:/lib/setup/SetupClass.php diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index d3c4c4eb..77b14a8a 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -42,7 +42,10 @@ class SetupFunctions $this->iCacheMemory = getCacheMemoryMB(); } - $this->sModulePath = getSetting('DATABASE_MODULE_PATH', CONST_InstallDir.'/module'); + $this->sModulePath = getSetting('DATABASE_MODULE_PATH'); + if (!$this->sModulePath) { + $this->sModulePath = CONST_Default_ModulePath; + } info('module path: ' . $this->sModulePath); // parse database string @@ -736,9 +739,6 @@ class SetupFunctions fwriteConstDef($rFile, 'LibDir', CONST_LibDir); fwriteConstDef($rFile, 'DataDir', CONST_DataDir); fwriteConstDef($rFile, 'InstallDir', CONST_InstallDir); - - fwrite($rFile, "if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SETTINGS'));\n\n"); - fwriteConstDef($rFile, 'Database_DSN', getSetting('DATABASE_DSN')); fwriteConstDef($rFile, 'Default_Language', getSetting('DEFAULT_LANGUAGE')); fwriteConstDef($rFile, 'Log_DB', getSettingBool('LOG_DB'));