summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-24 11:46:25 +0100
committerAndrey Andreev <narf@devilix.net>2014-03-24 11:46:25 +0100
commit623227ff09e750f6ed131c4c09c69d9a4cb1a523 (patch)
treec261c756952839d6d3259b46e822de461c6e0c6f /system/core/Loader.php
parent24811f272a00682c38f447f93dca4b46e835db63 (diff)
CI_Loader::_ci_autoload() micro-optimization
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 3d88f42f4..5747b7918 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -1215,10 +1215,10 @@ class CI_Loader {
// Load any custom config file
if (count($autoload['config']) > 0)
{
- $CI =& get_instance();
- foreach ($autoload['config'] as $key => $val)
+ $CFG =& load_class('Config', 'core');
+ foreach ($autoload['config'] as $val)
{
- $CI->config->load($val);
+ $CFG->load($val);
}
}