From 6fa0ee7509f3e59b67477b554dce82a873cab95b Mon Sep 17 00:00:00 2001 From: misja Date: Tue, 15 Jul 2008 09:34:59 +0000 Subject: 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 --- engine/handlers/xml-rpc_handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/handlers/xml-rpc_handler.php') 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 -- cgit v1.2.3