commit | 9730c75373afbb9b4c9310d3235bdb74adb5b1b2 | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Wed Dec 15 10:50:15 2010 +0000 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Wed Dec 15 10:50:15 2010 +0000 |
tree | 7dbcaa1bddd0c2eeb608edfcd1e9947b343e1db7 | |
parent | 678256c2007b06452b581fb692d948b7c9c94a7b [diff] [blame] |
Package paths can now be auto-loaded in autoload.php.
diff --git a/system/core/Loader.php b/system/core/Loader.php index 4b6b19e..afbae61 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php
@@ -942,6 +942,15 @@ 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) {