From 6801199f087954afef903dadd837230ae6457e31 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 3 Oct 2007 21:30:40 +0000 Subject: another fix for TConditional. --- framework/Web/UI/WebControls/TConditional.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TConditional.php b/framework/Web/UI/WebControls/TConditional.php index 54ab6063..d8a081b1 100644 --- a/framework/Web/UI/WebControls/TConditional.php +++ b/framework/Web/UI/WebControls/TConditional.php @@ -83,10 +83,10 @@ class TConditional extends TControl if($result) { if($this->_trueTemplate) - $this->_trueTemplate->instantiateIn($this->getTemplateControl(),$this->getParent()); + $this->_trueTemplate->instantiateIn($this->getTemplateControl(),$this); } else if($this->_falseTemplate) - $this->_falseTemplate->instantiateIn($this->getTemplateControl(),$this->getParent()); + $this->_falseTemplate->instantiateIn($this->getTemplateControl(),$this); $this->_creatingChildren=false; } -- cgit v1.2.3