aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-25 11:26:24 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-25 11:26:24 +0000
commit3ce476727e532223668351384fc9c564bb0705de (patch)
tree36983267b51250ecf5e6dabc34b2b259b9c89683 /engine
parent8d79fd97ea205964e1a1409b3878e831c7617742 (diff)
downloadelgg-3ce476727e532223668351384fc9c564bb0705de.tar.gz
elgg-3ce476727e532223668351384fc9c564bb0705de.tar.bz2
view now set by endpoint
git-svn-id: https://code.elgg.org/elgg/trunk@2130 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/api.php4
1 files changed, 1 insertions, 3 deletions
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))