diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2007-02-05 23:46:56 +0100 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2007-02-05 23:46:56 +0100 |
commit | 7fcf8ca599f21732a124b8d2610f32a9e4b01c7d (patch) | |
tree | cc2f7a87a19d88bae1a7c6137b10f73a3d2f0094 /system | |
parent | 085c00ff6948bd21e72d24c53457f3bbf2274985 (diff) |
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Loader.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index f76146ffd..38d7c35a8 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -697,7 +697,6 @@ class CI_Loader { } // Lets search for the requested library file and load it. - $is_duplicate = FALSE; for ($i = 1; $i < 3; $i++) { $path = ($i % 2) ? APPPATH : BASEPATH; @@ -712,8 +711,8 @@ class CI_Loader { // Safety: Was the class already loaded by a previous call? if (in_array($fp, $this->_ci_classes)) { - $is_duplicate = TRUE; - continue; + log_message('debug', $class." class already loaded.Ê Second attempt ignored."); + return; } include($fp); |