commit | 623227ff09e750f6ed131c4c09c69d9a4cb1a523 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Mon Mar 24 12:46:25 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Mon Mar 24 12:46:25 2014 +0200 |
tree | c261c756952839d6d3259b46e822de461c6e0c6f | |
parent | 24811f272a00682c38f447f93dca4b46e835db63 [diff] [blame] |
CI_Loader::_ci_autoload() micro-optimization
diff --git a/system/core/Loader.php b/system/core/Loader.php index 3d88f42..5747b79 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php
@@ -1215,10 +1215,10 @@ // 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); } }