]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix access to environment variable
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 14 Jan 2021 08:29:43 +0000 (09:29 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 14 Jan 2021 08:29:43 +0000 (09:29 +0100)
lib/lib.php

index 5d4038d6db9eb3570dfee4ba9c614046fd55e01f..5e89916c8cae0105071303627d1776400f867aa7 100644 (file)
@@ -41,7 +41,7 @@ function getSettingBool($sConfName)
 
 function getSettingConfig($sConfName, $sSystemConfig)
 {
-    $sValue = $_ENV['NOMINATIM_'.$sConfName];
+    $sValue = $_SERVER['NOMINATIM_'.$sConfName];
 
     if (!$sValue) {
         return CONST_DataDir.'/settings/'.$sSystemConfig;