summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorxue <>2006-04-02 15:39:57 +0000
committerxue <>2006-04-02 15:39:57 +0000
commit29130c17def4e63475b3fd775f48832e8d07bda0 (patch)
tree941a62e23743b2dfc5ed8a109cab6bdf12a0edf0 /framework/Web/Services
parent64e629c5336084f39d36405bda2e78f15367573c (diff)
Added TParameterModule.
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TPageService.php6
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