mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 11:37:12 +02:00
Fix bug in Setup.php
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user