mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 00:46:07 +02:00
another fix for safe upgrade
This commit is contained in:
@@ -11,6 +11,9 @@ namespace Grav;
|
||||
|
||||
\define('GRAV_REQUEST_TIME', microtime(true));
|
||||
\define('GRAV_PHP_MIN', '7.3.6');
|
||||
if (!\defined('GRAV_ROOT')) {
|
||||
\define('GRAV_ROOT', __DIR__);
|
||||
}
|
||||
|
||||
if (PHP_SAPI === 'cli-server') {
|
||||
$symfony_server = stripos(getenv('_'), 'symfony') !== false || stripos($_SERVER['SERVER_SOFTWARE'] ?? '', 'symfony') !== false || stripos($_ENV['SERVER_SOFTWARE'] ?? '', 'symfony') !== false;
|
||||
|
||||
Reference in New Issue
Block a user