From c51830feecc90c286cadd8427c2f00625c8e15fd Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 15 Dec 2020 18:30:21 +0200 Subject: [PATCH] Fix bug in Setup.php --- system/src/Grav/Common/Config/Setup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/src/Grav/Common/Config/Setup.php b/system/src/Grav/Common/Config/Setup.php index 4da1095c9..190ee4ace 100644 --- a/system/src/Grav/Common/Config/Setup.php +++ b/system/src/Grav/Common/Config/Setup.php @@ -223,6 +223,8 @@ class Setup extends Data // Initialize class. parent::__construct($setup); + $this->def('environment', static::$environment); + // Figure out path for the current environment. $envPath = defined('GRAV_ENVIRONMENT_PATH') ? GRAV_ENVIRONMENT_PATH : (getenv('GRAV_ENVIRONMENT_PATH') ?: null); if (null === $envPath) {