diff options
author | xue <> | 2006-04-02 15:39:57 +0000 |
---|---|---|
committer | xue <> | 2006-04-02 15:39:57 +0000 |
commit | 29130c17def4e63475b3fd775f48832e8d07bda0 (patch) | |
tree | 941a62e23743b2dfc5ed8a109cab6bdf12a0edf0 /framework/Web/Services/TPageService.php | |
parent | 64e629c5336084f39d36405bda2e78f15367573c (diff) |
Added TParameterModule.
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 022c1286..8590540f 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -170,15 +170,15 @@ class TPageService extends TService $parameters=$application->getParameters();
foreach($pageConfig->getParameters() as $id=>$parameter)
{
- if(is_string($parameter))
- $parameters->add($id,$parameter);
- else
+ if(is_array($parameter))
{
$component=Prado::createComponent($parameter[0]);
foreach($parameter[1] as $name=>$value)
$component->setSubProperty($name,$value);
$parameters->add($id,$component);
}
+ else
+ $parameters->add($id,$parameter);
}
// load modules specified in page directory config
|