diff options
author | xue <> | 2005-12-21 22:53:34 +0000 |
---|---|---|
committer | xue <> | 2005-12-21 22:53:34 +0000 |
commit | 65f1bcdb9768315de76fdc35933e34b6b60182e6 (patch) | |
tree | 714814b02d788618a470a76644c436abce018a96 /framework/Web/UI | |
parent | b3eaf49f03a248c788c09cf06e4460130e964a5f (diff) |
Enhanced TemplateFile check for TPage. If a page entry in config.xml doesn't have 'class', it defaults to 'TPage'.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/TPage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index e01cb7f5..69b0cc31 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -212,7 +212,7 @@ class TPage extends TTemplateControl */
public function setTemplateFile($value)
{
- if(($templateFile=Prado::getPathOfNamespace($value,TTemplateManager::TEMPLATE_FILE_EXT))===null)
+ if(($templateFile=Prado::getPathOfNamespace($value,TTemplateManager::TEMPLATE_FILE_EXT))===null || !is_file($templateFile))
throw new TInvalidDataValueException('page_templatefile_invalid',$value);
else
$this->_templateFile=$templateFile;
|