From 2ca2c272a19e776ea4739808a7b3c1b56c56f43f Mon Sep 17 00:00:00 2001 From: eirikhm <> Date: Fri, 24 Apr 2009 09:23:43 +0000 Subject: fixed #145 --- framework/Web/Services/TJsonService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework') 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); -- cgit v1.2.3