mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-28 15:47:06 -04:00
Fix closing parenthesis, otherwise ENVIRONMENT always resulted true & path added as tests/
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user