diff options
author | javalizard <> | 2010-04-18 14:12:43 +0000 |
---|---|---|
committer | javalizard <> | 2010-04-18 14:12:43 +0000 |
commit | 23292e69d329e07bba5b0cf1f15c768c1303f59e (patch) | |
tree | 7f4179b5ac45ada31e9605912ebd51330bb4c34c /framework/Web/UI/WebControls/THtmlElement.php | |
parent | 9ff7c85458ad95fb6506f162f71cc15e6909ded1 (diff) |
smaller code for THtmlElement
Diffstat (limited to 'framework/Web/UI/WebControls/THtmlElement.php')
-rw-r--r-- | framework/Web/UI/WebControls/THtmlElement.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/THtmlElement.php b/framework/Web/UI/WebControls/THtmlElement.php index 96fd1a5a..9dc24aeb 100644 --- a/framework/Web/UI/WebControls/THtmlElement.php +++ b/framework/Web/UI/WebControls/THtmlElement.php @@ -39,11 +39,7 @@ class THtmlElement extends TWebControl */
public function getTagName()
{
- if($this->_tagName !== null) return $this->_tagName;
-
- $this->_tagName = $this->getDefaultTagName();
-
- return $this->_tagName;
+ return ($this->_tagName !== null) ? $this->_tagName : ($this->_tagName = $this->getDefaultTagName());
}
/**
|