diff options
author | xue <> | 2006-01-13 04:33:09 +0000 |
---|---|---|
committer | xue <> | 2006-01-13 04:33:09 +0000 |
commit | d202492e4ad31c4127b4b459b300de7cd1976c1b (patch) | |
tree | 1d8be599d532c0607a2cd2ec6f388e14a672c157 /framework/Web/UI/TTemplateManager.php | |
parent | 41c22e5708904d20362bdd987567fb5f074f07d0 (diff) |
Added documentation.
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index bd838db2..d039288e 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -233,8 +233,9 @@ class TTemplate extends TComponent implements ITemplate */
public function instantiateIn($tplControl)
{
- $page=$tplControl->getPage();
- $this->_assetManager=$page->getService()->getAssetManager();
+ if(($page=$tplControl->getPage())===null)
+ $page=$this->getService()->getRequestedPage();
+ $this->_assetManager=$this->getService()->getAssetManager();
$controls=array();
foreach($this->_tpl as $key=>$object)
{
|