summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorxue <>2007-10-03 21:21:40 +0000
committerxue <>2007-10-03 21:21:40 +0000
commit9b833015fcb1abffe80685a8ee5231ade9bd4923 (patch)
tree536de7a1646d1bc87ab645d8955e1befe2bc2f63 /framework/Web/UI/WebControls
parent7114280214ab22250c3ddd12509c2e388936a304 (diff)
Fixed TConditional parent-child relationship.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TConditional.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TConditional.php b/framework/Web/UI/WebControls/TConditional.php
index d6cf2473..54ab6063 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->getParent(),$this->getTemplateControl());
+ $this->_trueTemplate->instantiateIn($this->getTemplateControl(),$this->getParent());
}
else if($this->_falseTemplate)
- $this->_falseTemplate->instantiateIn($this->getParent(),$this->getTemplateControl());
+ $this->_falseTemplate->instantiateIn($this->getTemplateControl(),$this->getParent());
$this->_creatingChildren=false;
}