diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-29 21:32:54 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-08-23 12:25:39 +0200 |
commit | 38de5e9f10bcf9c01b8b0368e62817de4eab44d4 (patch) | |
tree | a01ed033d4cd6b9b71235c95a27eff7818a67507 /framework/Web | |
parent | ceef8104c7669153e83c8f4414bb24661354bffe (diff) |
Avoid dependency loop between TRadioButton and TRadioButtonList
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TRadioButton.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index 5dd7f767..bb12a2ff 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -13,10 +13,6 @@ * Using TCheckBox parent class */ Prado::using('System.Web.UI.WebControls.TCheckBox'); -/** - * Using TRadioButtonList class - */ -Prado::using('System.Web.UI.WebControls.TRadioButtonList'); /** * TRadioButton class @@ -180,7 +176,7 @@ class TRadioButton extends TCheckBox { if($groupName!=='') $groupName=substr($uniqueID,0,$pos+1).$groupName; - else if($this->getNamingContainer() instanceof TRadioButtonList) + else if(is_a($this->getNamingContainer(), 'TRadioButtonList')) $groupName=substr($uniqueID,0,$pos); } if($groupName==='') |