From 3ce476727e532223668351384fc9c564bb0705de Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 25 Sep 2008 11:26:24 +0000 Subject: view now set by endpoint git-svn-id: https://code.elgg.org/elgg/trunk@2130 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engine/lib/api.php') diff --git a/engine/lib/api.php b/engine/lib/api.php index 09e6a8edb..34e3c23c9 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -935,9 +935,6 @@ // Time $time = microtime(true); - - // Hard code the format - we're using PHP, so lets use PHP serialisation. - $call['view'] = "php"; // URL encode all the parameters foreach ($call as $k => $v){ @@ -988,6 +985,7 @@ // Send the query and get the result and decode. $APICLIENT_LAST_CALL_RAW = file_get_contents($url, false, $context); + $APICLIENT_LAST_CALL = unserialize($APICLIENT_LAST_CALL_RAW); if (($APICLIENT_LAST_CALL) && ($APICLIENT_LAST_CALL->status!=0)) -- cgit v1.2.3