diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index 768b154..5a32e65 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -232,16 +232,20 @@
}
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()