summaryrefslogtreecommitdiffstats
path: root/system/libraries/Controller.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-01-18 01:42:35 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-01-18 01:42:35 +0100
commitc76a3746c9141ab767219fca0f0dbc7535d52cb7 (patch)
tree110a42e6413ca6b758930f970e2cbaaa930158f2 /system/libraries/Controller.php
parent646c04f97188b5b95ed14dbb3fc8a976c7c79322 (diff)
Fixed a bug (#3175) preventing certain libraries from working properly when autoloaded in PHP 4 by re-syncing the master object from the copy
Diffstat (limited to 'system/libraries/Controller.php')
-rw-r--r--system/libraries/Controller.php9
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;
+ }
+ }
}
}