summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-02-05 23:46:56 +0100
committerRick Ellis <rick.ellis@ellislab.com>2007-02-05 23:46:56 +0100
commit7fcf8ca599f21732a124b8d2610f32a9e4b01c7d (patch)
treecc2f7a87a19d88bae1a7c6137b10f73a3d2f0094 /system/libraries
parent085c00ff6948bd21e72d24c53457f3bbf2274985 (diff)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Loader.php5
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);