X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/72ee1abc90b11d4afefada38bb60b09e37c8e863..15a1666f8a1e19c338015fccd502be6cfd5c24df:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index fcd22066..753159d2 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -1,5 +1,28 @@ load($sProjectDir.'/.env'); + } + $dotenv->load(CONST_DataDir.'/settings/env.defaults'); +} + +function getSetting($sConfName) +{ + return $_ENV['NOMINATIM_'.$sConfName]; +} + function fail($sError, $sUserError = false) { if (!$sUserError) $sUserError = $sError;