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/Services/TPageService.php | |
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/Services/TPageService.php')
-rw-r--r-- | framework/Web/Services/TPageService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 39f659e9..90222df5 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -742,9 +742,9 @@ class TPageConfiguration extends TComponent foreach($pagesNode->getElementsByTagName('page') as $node)
{
$properties=$node->getAttributes();
- $type=$properties->remove('class');
- $id=$properties->itemAt('id');
- if($id===null || $type===null)
+ if(($type=$properties->remove('class'))===null)
+ $type='TPage';
+ if(($id=$properties->itemAt('id'))===null)
throw new TConfigurationException('pageserviceconf_page_invalid',$configPath);
if($id===$page)
{
|