summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 11:50:15 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 11:50:15 +0100
commit9730c75373afbb9b4c9310d3235bdb74adb5b1b2 (patch)
tree7dbcaa1bddd0c2eeb608edfcd1e9947b343e1db7 /system/core/Loader.php
parent678256c2007b06452b581fb692d948b7c9c94a7b (diff)
Package paths can now be auto-loaded in autoload.php.
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 4b6b19eea..afbae6175 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -942,6 +942,15 @@ class CI_Loader {
return FALSE;
}
+ // Autoload packages
+ if (isset($autoload['packages']))
+ {
+ foreach ($autoload['packages'] as $package_path)
+ {
+ $this->add_package_path($package_path);
+ }
+ }
+
// Load any custom config file
if (count($autoload['config']) > 0)
{