summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TWebControl.php
diff options
context:
space:
mode:
authorxue <>2006-01-01 21:28:57 +0000
committerxue <>2006-01-01 21:28:57 +0000
commitf618592c07c32c4955367a4c5bf9c4e18727cefe (patch)
tree05fea8cc46f84307d41e30f61fd008b88435972c /framework/Web/UI/WebControls/TWebControl.php
parentc4ffe5fe2b3556f0fcbf6f7a28ef09ce24d06e74 (diff)
Enhanced support to attribute access.
Diffstat (limited to 'framework/Web/UI/WebControls/TWebControl.php')
-rw-r--r--framework/Web/UI/WebControls/TWebControl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TWebControl.php b/framework/Web/UI/WebControls/TWebControl.php
index e86b9161..8ef47ede 100644
--- a/framework/Web/UI/WebControls/TWebControl.php
+++ b/framework/Web/UI/WebControls/TWebControl.php
@@ -352,9 +352,9 @@ class TWebControl extends TControl
$writer->addAttribute('title',$toolTip);
if($style=$this->getViewState('Style',null))
$style->addAttributesToRender($writer);
- if($attributes=$this->getViewState('Attributes',null))
+ if($this->getHasAttributes())
{
- foreach($attributes as $name=>$value)
+ foreach($this->getAttributes() as $name=>$value)
$writer->addAttribute($name,$value);
}
}