From e126c0067e9efee6542d08bf649588e2cf3a5924 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 12 Jan 2006 03:22:03 +0000 Subject: Fixed several issues about viewstate handling. Prado Composer is nearly completed. --- framework/Web/UI/TTemplateManager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/TTemplateManager.php') diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index b6a9abd8..bd838db2 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -231,10 +231,9 @@ class TTemplate extends TComponent implements ITemplate * @param TControl the parent control * @throws TTemplateRuntimeException if an error is encountered during the instantiation. */ - public function instantiateIn($tplControl,$page=null) + public function instantiateIn($tplControl) { - if($page===null) - $page=$tplControl->getPage(); + $page=$tplControl->getPage(); $this->_assetManager=$page->getService()->getAssetManager(); $controls=array(); foreach($this->_tpl as $key=>$object) -- cgit v1.2.3