summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-21 00:28:39 +0200
committeradmin <devnull@localhost>2006-10-21 00:28:39 +0200
commit570c161b4c22c1fcdc0345b0d57a9ea127db4b4a (patch)
tree8084d27013546b96718c23c43803d8b2e140e2f5
parentafe3aaa5292132e3f2c4604a413957fa18a603e5 (diff)
-rw-r--r--system/libraries/Loader.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index b313c6d5a..253d916c4 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -669,17 +669,17 @@ class CI_Loader {
include_once(BASEPATH.'libraries/'.ucfirst($class).EXT);
include_once(APPPATH.'libraries/'.config_item('subclass_prefix').$class.EXT);
- return $this->_ci_init_class($filename, config_item('subclass_prefix'), $params);
+ return $this->_ci_init_class($class, config_item('subclass_prefix'), $params);
}
// Lets search for the requested library file and load it.
for ($i = 1; $i < 3; $i++)
{
$path = ($i % 2) ? APPPATH : BASEPATH;
- if (file_exists($path.'libraries/'.$filename.EXT))
+ if (file_exists($path.'libraries/'.$class.EXT))
{
- include_once($path.'libraries/'.$filename.EXT);
- return $this->_ci_init_class($filename, '', $params);
+ include_once($path.'libraries/'.$class.EXT);
+ return $this->_ci_init_class($class, '', $params);
}
}