From b85f962561fb516cb774e6028fde869aedb75f12 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 16 Jul 2008 17:44:59 +0000 Subject: Closes #161 git-svn-id: https://code.elgg.org/elgg/trunk@1446 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/opendd/viewuuid.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/mod/opendd/viewuuid.php b/mod/opendd/viewuuid.php index 2772c9d66..3f27c950e 100644 --- a/mod/opendd/viewuuid.php +++ b/mod/opendd/viewuuid.php @@ -15,11 +15,23 @@ $uuid = get_input('uuid'); // Fetch the UUID as an object - $entity = opendd_fetch_to_elgg($uuid); + $odd = opendd_fetch_uuid($uuid); - // If entity then render - if ($entity) + $body = ""; + foreach ($odd as $o) + { + if ($o instanceof ODDMetaData) + { + if (($o->getAttribute('name') == 'renderedentity') && ($o->getAttribute('type')=='volatile')) + $body = $o->getBody(); + } + } + + if ($body=="") + { + $entity = opendd_odd_to_elgg($odd); $body = elgg_view_entity($entity, "", true); + } $body = elgg_view_layout('one_column',$body); -- cgit v1.2.3