From e859064fcaa1c8020b6b74d6dd3b4ab015a9146f Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 17 Jan 2024 21:39:30 +0000 Subject: [PATCH] [core] environment settings didn't work as well as I'd hoped --- core/sys_config.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/sys_config.php b/core/sys_config.php index 98d2a3eb..dc8f366b 100644 --- a/core/sys_config.php +++ b/core/sys_config.php @@ -9,8 +9,7 @@ namespace Shimmie2; * Shimmie will set the values to their defaults * * All of these can be over-ridden by placing a 'define' in - * data/config/shimmie.conf.php, or by setting an environment - * variable SHM_{$name} (eg SHM_DATABASE_DSN) + * data/config/shimmie.conf.php. * * Do NOT change them in this file. These are the defaults only! * @@ -21,10 +20,6 @@ namespace Shimmie2; function _d(string $name, mixed $value): void { if (!defined($name)) { - $env = getenv("SHM_{$name}"); - if ($env !== false) { - $value = json_decode($env) ?? $env; - } define($name, $value); } }