summaryrefslogtreecommitdiffstats
path: root/system/libraries/Model.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-07 05:16:32 +0200
committeradmin <devnull@localhost>2006-10-07 05:16:32 +0200
commit88a8ad187b13b36d6120eae2344fe16c3a76219d (patch)
tree9707b986ae9fe37f226abd5fec76b58d15903858 /system/libraries/Model.php
parent81ccb439c2743776728b798bdc7e31db3d826233 (diff)
Diffstat (limited to 'system/libraries/Model.php')
-rw-r--r--system/libraries/Model.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Model.php b/system/libraries/Model.php
index 55c995636..46f0367cb 100644
--- a/system/libraries/Model.php
+++ b/system/libraries/Model.php
@@ -49,18 +49,18 @@ class Model {
*/
function _assign_libraries($use_reference = TRUE)
{
- $obj =& get_instance();
- foreach (get_object_vars($obj) as $key => $var)
+ $CI =& get_instance();
+ foreach (get_object_vars($CI) as $key => $var)
{
if (is_object($var) AND ! isset($this->$key))
{
if ($use_reference === TRUE)
{
- $this->$key =& $obj->$key;
+ $this->$key =& $CI->$key;
}
else
{
- $this->$key = $obj->$key;
+ $this->$key = $CI->$key;
}
}
}