From 5f83969e484bcca0f56732608f234fe4e2ebe15e Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 24 Mar 2014 17:34:54 +0200 Subject: 2 more micro-optimizations in CI_Loader --- system/core/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system') 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; -- cgit v1.2.3-24-g4f1b