diff options
author | admin <devnull@localhost> | 2006-09-21 08:22:05 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-21 08:22:05 +0200 |
commit | d48ef1c8e2e84067a58818291935593d70e491f8 (patch) | |
tree | a21500ef1534140f3442a0eb2bf2ee96b7be8bd8 /system/libraries/Controller.php | |
parent | 1a3ffb457fc1f0fc248d8178b228e9a2c8569445 (diff) |
Diffstat (limited to 'system/libraries/Controller.php')
-rw-r--r-- | system/libraries/Controller.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php index 768b154e8..5a32e65c0 100644 --- a/system/libraries/Controller.php +++ b/system/libraries/Controller.php @@ -232,16 +232,20 @@ class Controller extends CI_Base { } unset($autoload['config']); - if ( ! is_array($autoload['core'])) + // A little tweak to remain backward compatible + // The $autoload['core'] item was deprecated + if ( ! isset($autoload['libraries'])) { - $autoload['core'] = array($autoload['core']); + $autoload['libraries'] = $autoload['core']; + } - foreach ($autoload['core'] as $item) + foreach ($autoload['libraries'] as $item) { $this->_ci_initialize($item); } - + unset($autoload['libraries']); + return $autoload; } // END _ci_autoload() |