aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-16 17:44:59 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-16 17:44:59 +0000
commitb85f962561fb516cb774e6028fde869aedb75f12 (patch)
tree7d6645e863c556814a5ae4a18ad16ee0b3235a2b /mod/opendd
parentcedf4df823b9f79fcf58dbefdedb28ceeb350dc2 (diff)
downloadelgg-b85f962561fb516cb774e6028fde869aedb75f12.tar.gz
elgg-b85f962561fb516cb774e6028fde869aedb75f12.tar.bz2
Closes #161
git-svn-id: https://code.elgg.org/elgg/trunk@1446 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd')
-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);