X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/04690ad8c4734c15efc920bc0dab59cf78e3e7cb..a759c5b75b66894b1902327097185840a2557f86:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 5d4038d6..a02fefd0 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -1,7 +1,5 @@ load(CONST_DataDir.'/settings/env.defaults'); - - if (file_exists($sProjectDir.'/.env')) { - $dotenv->load($sProjectDir.'/.env'); - } + defined('CONST_Default_ModulePath') or define('CONST_Default_ModulePath', $_SERVER['NOMINATIM_DATABASE_MODULE_SRC_PATH']); } function getSetting($sConfName, $sDefault = null) @@ -41,7 +33,7 @@ function getSettingBool($sConfName) function getSettingConfig($sConfName, $sSystemConfig) { - $sValue = $_ENV['NOMINATIM_'.$sConfName]; + $sValue = $_SERVER['NOMINATIM_'.$sConfName]; if (!$sValue) { return CONST_DataDir.'/settings/'.$sSystemConfig;