diff options
author | admin <devnull@localhost> | 2006-09-26 05:52:45 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-26 05:52:45 +0200 |
commit | e79dc7130a0003a07833609487b8ebb5ebcf31c8 (patch) | |
tree | 8400c41761ddcd7a9338637eefc9429d501d87ff /system/libraries/Loader.php | |
parent | 30c3b9709a12b7346c7057e656a491ffb9168f55 (diff) |
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r-- | system/libraries/Loader.php | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index 833e37640..7449fa34a 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -136,15 +136,9 @@ class CI_Loader { * @param bool whether to return the DB object * @return object */ - function dbutil($db = '', $return = FALSE) + function dbutil() { $obj =& get_instance(); - - if ( ! is_bool($return)) - { - $return = FALSE; - } - return $obj->_ci_init_dbutil($db, $return); } // END dbutils() @@ -484,14 +478,14 @@ class CI_Loader { // This allows anything loaded using $this->load (viwes, files, etc.) // to become accessible from within the Controller and Model functions. $obj =& get_instance(); - foreach ($obj->ci_is_loaded as $val) + foreach (get_object_vars($obj) as $key => $var) { - if ( ! isset($this->$val)) + if (is_object($var)) { - $this->$val =& $obj->$val; - } - } - + $this->$key =& $obj->$key; + } + } + // Set the default data variables foreach (array('view', 'vars', 'path', 'return') as $val) { |