aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-24 09:55:13 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-24 09:55:13 +0000
commitb23a13b0263efd2ef0fd8a26a6d4e724c4d4be9e (patch)
tree960d43bafb48d6292964e0920549b8d32cf51a56 /engine/lib/annotations.php
parent33962198a853f02497f72266ebf3fa692abd6976 (diff)
downloadelgg-b23a13b0263efd2ef0fd8a26a6d4e724c4d4be9e.tar.gz
elgg-b23a13b0263efd2ef0fd8a26a6d4e724c4d4be9e.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Generated now published * Metadata and annotations use time from db * Attributes use time from entity git-svn-id: https://code.elgg.org/elgg/trunk@514 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index e76254acb..4302d27a6 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -110,7 +110,10 @@
$type = "annotation";
$uuid = guid_to_uuid($this->entity_guid). $type . "/{$this->id}/";
- return new ODDMetadata($uuid, guid_to_uuid($this->entity_guid), $this->attributes[$name], $this->attributes['value'], $type, guid_to_uuid($this->owner_guid));
+ $meta = new ODDMetadata($uuid, guid_to_uuid($this->entity_guid), $this->attributes[$name], $this->attributes['value'], $type, guid_to_uuid($this->owner_guid));
+ $meta->setAttribute('published', date("r", $this->time_created));
+
+ return $meta;
}
}