From b31529fac38c9c47a0a702c8a4289d1344046b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Plusquellec?= Date: Sat, 4 Nov 2017 08:20:38 +0100 Subject: [PATCH] env --- lib/lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/lib.php b/lib/lib.php index a272e59..840e00a 100755 --- a/lib/lib.php +++ b/lib/lib.php @@ -3817,6 +3817,12 @@ function conf($key, $default = null) function appenv($key, $default = null) { + $env = getenv($key); + + if (false !== $env) { + return $env; + } + $env = path('base') . '/.env'; if (File::exists($env)) {