summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-18 16:36:07 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-18 16:36:07 +0100
commitecaef964232f7889eb3eab35b69cebbf3221ad66 (patch)
tree56759ff61e0512db9debfceb6f119ea3ea4dc911 /system/core/Loader.php
parent60f71be48a6b91cc314908c3c0007f13e9cb2f0a (diff)
parentb2a0e70585367e59bf2d106629c0e9c3ab1370c2 (diff)
Merge branch 'develop' into feature/output_compressed_cache
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 78172580d..8c8d5a37c 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -184,9 +184,16 @@ class CI_Loader {
}
elseif (is_array($library))
{
- foreach ($library as $class)
+ foreach ($library as $key => $value)
{
- $this->library($class, $params);
+ if (is_int($key))
+ {
+ $this->library($value, $params);
+ }
+ else
+ {
+ $this->library($key, $params, $value);
+ }
}
return $this;