From 3fad2a8173fb71e2cc8be5daaeedd72f6d5c698b Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 20 Oct 2025 13:34:42 -0600 Subject: [PATCH] fix for GRAV_ROOT Signed-off-by: Andy Miller --- index.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.php b/index.php index becef1a73..79d646167 100644 --- a/index.php +++ b/index.php @@ -11,9 +11,6 @@ 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;