diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-12 08:14:10 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-12 08:14:10 +0100 |
commit | 5fe23e863b79fe03fb8e73f7c77bd1c75f4de12d (patch) | |
tree | b2fbb0e5e09dbe68494e356174c74f2806913002 /system/core/Loader.php | |
parent | 0aa9f2e86124194cd64fde098ba7a4169625d353 (diff) | |
parent | 3d933b6fad72d4b92f18187dd57f1d3c35f8936a (diff) |
Merge changes from upstream and fix _limit()
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 20cf7ef33..9b9cc2fef 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -2,7 +2,7 @@ /** * CodeIgniter * - * An open source application development framework for PHP 5.1.6 or newer + * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * @@ -615,13 +615,22 @@ class CI_Loader { * * Loads a driver library * - * @param string the name of the class + * @param mixed the name of the class or array of classes * @param mixed the optional parameters * @param string an optional object name * @return void */ public function driver($library = '', $params = NULL, $object_name = NULL) { + if (is_array($library)) + { + foreach ($library as $driver) + { + $this->driver($driver); + } + return FALSE; + } + if ( ! class_exists('CI_Driver_Library')) { // we aren't instantiating an object here, that'll be done by the Library itself |