diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Controller.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php index 0b34465a2..1b9a42a1a 100644 --- a/system/libraries/Controller.php +++ b/system/libraries/Controller.php @@ -84,6 +84,15 @@ class Controller extends CI_Base { else
{
$this->_ci_autoloader();
+
+ // sync up the objects since PHP4 was working from a copy
+ foreach (array_keys(get_object_vars($this)) as $attribute)
+ {
+ if (is_object($this->$attribute))
+ {
+ $this->load->$attribute =& $this->$attribute;
+ }
+ }
}
}
|