From a501dc9b9938e578f6b302c7bbccb276d12fa01e Mon Sep 17 00:00:00 2001 From: Aamir Shahzad Date: Thu, 22 Sep 2022 07:40:35 +0500 Subject: [PATCH] Fix closing parenthesis, otherwise ENVIRONMENT always resulted true & path added as tests/ --- application/config/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/hooks.php b/application/config/hooks.php index 7f4228ccb..720344df9 100644 --- a/application/config/hooks.php +++ b/application/config/hooks.php @@ -35,7 +35,7 @@ $hook['pre_controller'][] = array( $hook['pre_system'] = function() { - $config_path = APPPATH . (ENVIRONMENT == 'testing') ? 'tests/' : 'config/'; + $config_path = APPPATH . (ENVIRONMENT == 'testing' ? 'tests/' : 'config/'); try { $dotenv = new Dotenv\Dotenv($config_path); $dotenv->overload();