summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Loader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index c884df1cf..248245387 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -290,8 +290,8 @@ class CI_Loader {
require_once($mod_path.'models/'.$path.$model.'.php');
- $CI->$name = new $model();
$this->_ci_models[] = $name;
+ $CI->$name = new $model();
return $this;
}