diff options
| author | xue <> | 2006-08-31 01:33:23 +0000 | 
|---|---|---|
| committer | xue <> | 2006-08-31 01:33:23 +0000 | 
| commit | b680e71693696a7b5280787ccd084cf860bcf989 (patch) | |
| tree | a28fe77bb2eea9878eaa798820b2fc4a184fc77d | |
| parent | 783ac1d4bf9b9f5d0babaa223e56c4d746ad170b (diff) | |
Fixed #352.
| -rw-r--r-- | framework/Web/UI/TTemplateManager.php | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index b3317709..5d5dbc5e 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -286,8 +286,11 @@ class TTemplate extends TApplicationComponent implements ITemplate  		$directChildren=array();
  		foreach($this->_tpl as $key=>$object)
  		{
 -			$parent=isset($controls[$object[0]])?$controls[$object[0]]:$tplControl;
 -			if(($parent instanceof TControl) && !$parent->getAllowChildControls())
 +			if($object[0]===-1)
 +				$parent=$tplControl;
 +			else if(isset($controls[$object[0]]))
 +				$parent=$controls[$object[0]];
 +			else
  				continue;
  			if(isset($object[2]))	// component
  			{
  | 
