aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 09:34:59 +0000
committermisja <misja@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-15 09:34:59 +0000
commit6fa0ee7509f3e59b67477b554dce82a873cab95b (patch)
tree1cf23eba51b50d366b362d69ff189024e0e81c91
parentf8fc7ab3e50f396860b302abd36c91d2f84558d4 (diff)
downloadelgg-6fa0ee7509f3e59b67477b554dce82a873cab95b.tar.gz
elgg-6fa0ee7509f3e59b67477b554dce82a873cab95b.tar.bz2
Remove rogue print_r() statement, rightly set the xml view and fix incorrect xml-rpc view call.
git-svn-id: https://code.elgg.org/elgg/trunk@1419 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/handlers/xml-rpc_handler.php4
-rw-r--r--engine/lib/xml-rpc.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/engine/handlers/xml-rpc_handler.php b/engine/handlers/xml-rpc_handler.php
index 85de621b3..14c1b84d1 100644
--- a/engine/handlers/xml-rpc_handler.php
+++ b/engine/handlers/xml-rpc_handler.php
@@ -23,7 +23,7 @@
// Set some defaults
$result = null;
- $view = 'xml'; // Set default view regardless
+ $_SESSION['view'] = 'xml'; // Set default view regardless
// Get the post data
$input = get_post_data();
@@ -43,6 +43,6 @@
throw new APIException(elgg_echo('APIException:ApiResultUnknown'));
// Output result
- page_draw("XML-RPC", elgg_echo("xml-rpc/output", array('result' => $result)));
+ page_draw("XML-RPC", elgg_view("xml-rpc/output", array('result' => $result)));
?> \ No newline at end of file
diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php
index ddd36c993..6e078c875 100644
--- a/engine/lib/xml-rpc.php
+++ b/engine/lib/xml-rpc.php
@@ -69,9 +69,7 @@
$this->methodname = $xml->children[0]->content;
// parameters
- $this->params = $xml->children[1]->children;
-
- print_r($this);
+ $this->params = $xml->children[1]->children;
}
}