summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/UI/TTemplateManager.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index b29466ad..36562b1b 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -338,7 +338,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
$parent->addParsedObject($component);
}
}
- else if($object[1] instanceof TCompositeLiteral)
+ else
{
if($object[1] instanceof TCompositeLiteral)
{
@@ -358,8 +358,6 @@ class TTemplate extends TApplicationComponent implements ITemplate
$parent->addParsedObject($object[1]);
}
}
- else
- throw new TConfigurationException('template_content_unexpected',(string)$object[1]);
}
// delay setting parent till now because the parent may cause
// the child to do lifecycle catchup which may cause problem