diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-08 14:27:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-08 14:27:53 +0100 |
commit | 119d8a7547e155edaaa53682b9247cd7e80d8c9d (patch) | |
tree | cfcaa9dae3b642833d80c06b00805ba2d521c953 /system/core/Model.php | |
parent | cab3e1813f71bddfe8f045772e5cb42e76a4d347 (diff) |
Optimize get_instance() calls/assignments
Diffstat (limited to 'system/core/Model.php')
-rw-r--r-- | system/core/Model.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/Model.php b/system/core/Model.php index 1eb6f909b..11e60759b 100644 --- a/system/core/Model.php +++ b/system/core/Model.php @@ -59,8 +59,7 @@ class CI_Model { */ public function __get($key) { - $CI =& get_instance(); - return $CI->$key; + return get_instance()->$key; } } |