diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2010-12-15 11:50:15 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2010-12-15 11:50:15 +0100 |
commit | 9a311fd3c45faadb7081a48b068f07c0f44b9e5e (patch) | |
tree | e360b2260b22a9761a14f1c546591f40ec4df1be /system/core | |
parent | 1e74da235f7739e3d9b5e1f84cda6313499cefa1 (diff) |
Package paths can now be auto-loaded in autoload.php.
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Loader.php | 9 |
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) { |