summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authoreirikhm <>2009-04-24 09:23:43 +0000
committereirikhm <>2009-04-24 09:23:43 +0000
commit2ca2c272a19e776ea4739808a7b3c1b56c56f43f (patch)
treee393bf1de1096dca81c8000cb123b03376c5f10a /framework/Web
parent52939fc6732ba814bd15676a607a23c5beab61db (diff)
fixed #145
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Services/TJsonService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/Services/TJsonService.php b/framework/Web/Services/TJsonService.php
index 84f2dee2..611a3c22 100644
--- a/framework/Web/Services/TJsonService.php
+++ b/framework/Web/Services/TJsonService.php
@@ -74,11 +74,11 @@ class TJsonService extends TService
*/
protected function loadJsonServices($config)
{
- if($this->getApplication->getConfigurationType()==TApplication::CONFIG_TYPE_PHP)
+ if($this->getApplication()->getConfigurationType()==TApplication::CONFIG_TYPE_PHP)
{
if(is_array($config))
{
- foreach($config as $id => $json)
+ foreach($config['json'] as $id => $json)
$this->_services[$id] = $json;
}
}
@@ -109,7 +109,7 @@ class TJsonService extends TService
if(isset($serviceConfig['class']))
{
$service=Prado::createComponent($serviceConfig['class']);
- if($service instanceof JsonResponse)
+ if($service instanceof TJsonResponse)
{
$properties = isset($serviceConfig['properties'])?$serviceConfig['properties']:array();
$this->createJsonResponse($service,$properties,$serviceConfig);