Fix bug in Setup.php

This commit is contained in:
Matias Griese
2020-12-15 18:30:21 +02:00
parent 291e91891a
commit c51830feec

View File

@@ -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) {