summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-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);
}
}