From 547513b2d3dd1df32eb1b24c8bfb64c62f6fb478 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 28 Aug 2024 13:42:19 +0200 Subject: [PATCH] Do not parse the base url dynamically if the request is a CLI request --- application/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/config.php b/application/config/config.php index 5023e7aa..93532af3 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -30,7 +30,7 @@ if ($request_uri === '.') { $request_uri = ''; } -$config['base_url'] = trim($protocol . $domain . $request_uri, '/'); +$config['base_url'] = !is_cli() ? trim($protocol . $domain . $request_uri, '/') : Config::BASE_URL; /* |--------------------------------------------------------------------------