diff options
author | Andrey Andreev <narf@devilix.net> | 2014-03-24 16:34:54 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-03-24 16:34:54 +0100 |
commit | 5f83969e484bcca0f56732608f234fe4e2ebe15e (patch) | |
tree | e327f47c17faad609a4a53dba546258eba9136e4 | |
parent | 689d41c1860e372fc3a3178be075d5573e520cdc (diff) |
2 more micro-optimizations in CI_Loader
-rw-r--r-- | system/core/Loader.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 9169a1252..c884df1cf 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -271,7 +271,7 @@ class CI_Loader { $db_conn = ''; } - $CI->load->database($db_conn, FALSE, TRUE); + $this->database($db_conn, FALSE, TRUE); } if ( ! class_exists('CI_Model', FALSE)) @@ -623,12 +623,12 @@ class CI_Loader { */ public function language($files, $lang = '') { - $CI =& get_instance(); + $LNG =& get_instance()->lang; is_array($files) OR $files = array($files); foreach ($files as $langfile) { - $CI->lang->load($langfile, $lang); + $LNG->load($langfile, $lang); } return $this; |