summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TRadioButton.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-29 21:32:54 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-29 21:32:54 +0100
commitd8c20ad55a9a0b5b0b310020d599af667792d94c (patch)
tree1bb0f8add8623aa3d931f77c7163300ea39fa18e /framework/Web/UI/WebControls/TRadioButton.php
parent34cebfd80347ffd0b75efdb21845c053857f14d8 (diff)
Avoid dependency loop between TRadioButton and TRadioButtonList
Diffstat (limited to 'framework/Web/UI/WebControls/TRadioButton.php')
-rw-r--r--framework/Web/UI/WebControls/TRadioButton.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php
index d00f26b0..cd3d8480 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
@@ -170,7 +166,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==='')