Fix #83 where multiple libraries could not be loaded at once by passing an array to the load->library() function.
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 3169856..e64006e 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -78,6 +78,16 @@
*/
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;