aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 3e912836a..8e81f07d0 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -398,6 +398,7 @@
public function export()
{
$tmp = array();
+ $namespace = "http://www.opendd.net/ext/social/1/";
// Generate uuid
$uuid = guid_to_uuid($this->getGUID());
@@ -409,6 +410,9 @@
get_subtype_from_id($this->attributes['subtype'])
);
+ // Set namespace - we're outputting as ODD Social Network Extension
+ $odd->setNamespace($namespace);
+
$tmp[] = $odd;
// Now add its attributes
@@ -442,6 +446,7 @@
// set the time of any metadata created
if ($meta)
{
+ $meta->setNamespace($namespace);
$meta->setAttribute('published', date("r",$this->time_created));
$tmp[] = $meta;
}