summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-24 16:34:54 +0100
committerAndrey Andreev <narf@devilix.net>2014-03-24 16:34:54 +0100
commit5f83969e484bcca0f56732608f234fe4e2ebe15e (patch)
treee327f47c17faad609a4a53dba546258eba9136e4 /system/core/Loader.php
parent689d41c1860e372fc3a3178be075d5573e520cdc (diff)
2 more micro-optimizations in CI_Loader
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php6
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;