diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 16:21:52 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-04 16:21:52 +0000 |
commit | 81351727f4b3be12ddc4fb0d026ffb3e8f89b503 (patch) | |
tree | 202b5f17ba3753295636d1bbf0bb3eefd1ec84ea /services/export | |
parent | 0e0f13e14edec1048a48360e7573898c9921c355 (diff) | |
download | elgg-81351727f4b3be12ddc4fb0d026ffb3e8f89b503.tar.gz elgg-81351727f4b3be12ddc4fb0d026ffb3e8f89b503.tar.bz2 |
Handler output made a little more pretty.
git-svn-id: https://code.elgg.org/elgg/trunk@1686 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'services/export')
-rw-r--r-- | services/export/handler.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/services/export/handler.php b/services/export/handler.php index 667d2410d..1ac925ea5 100644 --- a/services/export/handler.php +++ b/services/export/handler.php @@ -22,6 +22,8 @@ $id_or_name = get_input("idname"); // Either a number or the key name (if attribute) + $body = ""; + $title = ""; // Only export the GUID if ( @@ -35,7 +37,8 @@ if (!$entity) throw new InvalidParameterException(sprintf(elgg_echo('InvalidParameterException:GUIDNotFound'), $guid)); - page_draw("GUID:$guid", elgg_view("export/entity", array("entity" => $entity, "uuid" => guid_to_uuid($guid)))); + $title = "GUID:$guid"; + $body = elgg_view("export/entity", array("entity" => $entity, "uuid" => guid_to_uuid($guid))); } // Export an individual attribute @@ -96,7 +99,8 @@ if ($m->entity_guid!=$entity->guid) throw new InvalidParameterException(elgg_echo('InvalidParameterException:DoesNotBelong')); - page_draw("$type:$id_or_name", elgg_view("export/metadata", array("metadata" => $m, "uuid" => $uuid))); + $title = "$type:$id_or_name"; + $body = elgg_view("export/metadata", array("metadata" => $m, "uuid" => $uuid)); } // Exporting relationship @@ -108,7 +112,8 @@ ) throw new InvalidParameterException(elgg_echo('InvalidParameterException:DoesNotBelongOrRefer')); - page_draw("$type:$id_or_name", elgg_view("export/relationship", array("relationship" => $r, "uuid" => $uuid))); + $title = "$type:$id_or_name"; + $body = elgg_view("export/relationship", array("relationship" => $r, "uuid" => $uuid)); } } @@ -116,4 +121,5 @@ else throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingParameter')); + page_draw($title, elgg_view_layout('one_column',elgg_view_title($title) . $body)); ?>
\ No newline at end of file |