diff options
author | xue <> | 2007-09-29 19:56:41 +0000 |
---|---|---|
committer | xue <> | 2007-09-29 19:56:41 +0000 |
commit | 1fd2ac430e0d636dec4ff724f0deaa1883d142fe (patch) | |
tree | 31b8ec8424f5c0ef376fd600ce32c4ac97ee5157 /framework/Web/UI | |
parent | 73ec41c2bb9abccbe691510d66a64b32be605e94 (diff) |
Fixed TConditional expression context.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/TConditional.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TConditional.php b/framework/Web/UI/WebControls/TConditional.php index 70eedf6d..41535ca4 100644 --- a/framework/Web/UI/WebControls/TConditional.php +++ b/framework/Web/UI/WebControls/TConditional.php @@ -74,7 +74,7 @@ class TConditional extends TControl $result=true;
try
{
- $result=$this->evaluateExpression($this->_condition);
+ $result=$this->getTemplateControl()->evaluateExpression($this->_condition);
}
catch(Exception $e)
{
@@ -99,6 +99,8 @@ class TConditional extends TControl }
/**
+ * Sets the PHP expression to be evaluated for conditionally displaying content.
+ * The context of the expression is the template control containing TConditional.
* @param string the PHP expression used for determining which template to use.
*/
public function setCondition($value)
|