From d8d909c97c52ce0e4d72eb791f46c5b3fecf5b1f Mon Sep 17 00:00:00 2001 From: Jack Wearden Date: Tue, 24 Dec 2013 16:37:35 +0000 Subject: [PATCH] Send response data in renderPage attribute Previously this data was sent in two places - "renderPage" and the class name of the entity that was sent. Eg: { "renderPage": data here... "Collection_Timetable": same data here... } This patch fixes that. --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1f99911..4401246 100644 --- a/index.php +++ b/index.php @@ -169,12 +169,12 @@ case 'head': case 'get': if ($item == null) { - $arrObjects[$object] = $object::brokerAll(); + $arrObjects['renderPage'] = $object::brokerAll(); } elseif ($item == 'me') { if ($arrObjects['Object_User']['current'] != false && $arrObjects['Object_User']['current'] != null ) { - $arrObjects[$object] = $object::brokerByColumnSearch('intUserID', $arrObjects['Object_User']['current']->getKey('intUserID')); + $arrObjects['renderPage'] = $object::brokerByColumnSearch('intUserID', $arrObjects['Object_User']['current']->getKey('intUserID')); if ($object == 'Object_User') { $arrObjects['Object_User']['current'] = Object_User::brokerCurrent(); } @@ -268,7 +268,7 @@ switch ($objRequest->get_strRequestMethod()) { case 'head': case 'get': - $arrObjects[$object][$item] = $requestedobject; + $arrObjects['renderPage'][$item] = $requestedobject; break; case 'post': case 'put':