aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/opendd/viewuuid.php18
1 files 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);