Fix closing parenthesis, otherwise ENVIRONMENT always resulted true & path added as tests/

This commit is contained in:
Aamir Shahzad
2022-09-22 07:40:35 +05:00
committed by jekkos
parent 06ca9e9f74
commit a501dc9b99

View File

@@ -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();