summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-10-07 23:35:29 +0200
committerAndrey Andreev <narf@devilix.net>2014-10-07 23:35:29 +0200
commit1c77aabf1aa0e860a3dc739d702dc8ff8dbdc907 (patch)
treece8fc9dc81b841db9d55d4b0974076357962c8bf /system/core
parent4bdb66759c24c41fefec7952b12a0595a671eaa2 (diff)
#3253
Diffstat (limited to 'system/core')
-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;
}