]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup/SetupClass.php
bdd: convert API tests to smaller test db
[nominatim.git] / lib / setup / SetupClass.php
index fd2b83dea96151088975ba5a8e620bcc27b09803..92c36bf3ab306e680a972dc2a2e934264b968285 100755 (executable)
@@ -42,7 +42,7 @@ class SetupFunctions
             $this->iCacheMemory = getCacheMemoryMB();
         }
 
-        $this->sModulePath = getSetting('DATABASE_MODULE_PATH', CONST_InstallDir.'/module');
+        $this->sModulePath = getSetting('DATABASE_MODULE_PATH', CONST_Default_ModulePath);
         info('module path: ' . $this->sModulePath);
 
         // parse database string
@@ -727,7 +727,7 @@ class SetupFunctions
           'status.php'
         );
 
-        foreach($aScripts as $sScript) {
+        foreach ($aScripts as $sScript) {
             $rFile = fopen(CONST_InstallDir.'/website/'.$sScript, 'w');
 
             fwrite($rFile, "<?php\n\n");
@@ -736,9 +736,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'));