diff options
author | Heesung Ahn <ahn.heesung@gmail.com> | 2015-03-05 16:49:11 +0100 |
---|---|---|
committer | Heesung Ahn <ahn.heesung@gmail.com> | 2015-03-05 16:49:11 +0100 |
commit | 7b0e60b085e35363bd9ab9150f62227f74711f2a (patch) | |
tree | e30dd7f4171c83e19a32d197a078f6a1daf0d658 /system/core/Config.php | |
parent | 4b25348e06a7587c64b97811208352c5c9478ab8 (diff) | |
parent | 137aa20e0b0fd71ff8f672c57c07c4972c91c6a4 (diff) |
Merge origin/develop into CI_Security_test
Diffstat (limited to 'system/core/Config.php')
-rw-r--r-- | system/core/Config.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/system/core/Config.php b/system/core/Config.php index a191a7727..b9af8e3b2 100644 --- a/system/core/Config.php +++ b/system/core/Config.php @@ -126,7 +126,6 @@ class CI_Config { foreach (array($file, ENVIRONMENT.'/'.$file) as $location) { $file_path = $path.'config/'.$location.'.php'; - if (in_array($file_path, $this->is_loaded, TRUE)) { return TRUE; @@ -165,14 +164,13 @@ class CI_Config { $loaded = TRUE; log_message('debug', 'Config file loaded: '.$file_path); } - - if ($loaded === TRUE) - { - return TRUE; - } } - if ($fail_gracefully === TRUE) + if ($loaded === TRUE) + { + return TRUE; + } + elseif ($fail_gracefully === TRUE) { return FALSE; } |