From db557a6331d2be1496d22627b3de61575567ad1a Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 12 Jun 2008 20:33:11 +0000 Subject: put remaining core plugins through the canvas views git-svn-id: https://code.elgg.org/elgg/trunk@903 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/exporttest/index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mod/exporttest') diff --git a/mod/exporttest/index.php b/mod/exporttest/index.php index 3c1320e1f..f3010d971 100644 --- a/mod/exporttest/index.php +++ b/mod/exporttest/index.php @@ -21,17 +21,20 @@ if ($guid) { - echo elgg_view("exporttest/outputxml", array("xml" => export($guid))); + echo elgg_view_layout("one_column", elgg_view("exporttest/outputxml", array("xml" => export($guid)))); } else if ($action=='import') { - $body = print_r(import(get_input('xml')), true); - $body .= elgg_view("exporttest/main", array("owner_id" => $owner_id)); + $area1 = print_r(import(get_input('xml')), true); + $area1 .= elgg_view("exporttest/main", array("owner_id" => $owner_id)); + + $body = elgg_view_layout("one_column", $area1); + page_draw("Import results",$body); } else { - $body = elgg_view("exporttest/main", array("owner_id" => $owner_id)); + $body = elgg_view_layout("one_column", elgg_view("exporttest/main", array("owner_id" => $owner_id))); page_draw("Export a GUID",$body); } ?> \ No newline at end of file -- cgit v1.2.3