diff options
author | Greg Aker <greg.aker@ellislab.com> | 2010-10-12 16:29:35 +0200 |
---|---|---|
committer | Greg Aker <greg.aker@ellislab.com> | 2010-10-12 16:29:35 +0200 |
commit | ce43396cb7beb49558cd78cf7ef51956a74b8185 (patch) | |
tree | e93e0e7d0f5814b086acd34fef88cfe5d2c75755 /system/core | |
parent | c288ea957dd5b01abba96c9644f309a2714482e7 (diff) |
Fix #83 where multiple libraries could not be loaded at once by passing an array to the load->library() function.
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Loader.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 316985609..e64006e93 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -78,6 +78,16 @@ class CI_Loader { */ function library($library = '', $params = NULL, $object_name = NULL) { + if (is_array($library)) + { + foreach($library as $read) + { + $this->library($read); + } + + return; + } + if ($library == '' OR isset($this->_base_classes[$library])) { return FALSE; |