summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
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;
}