From b23a13b0263efd2ef0fd8a26a6d4e724c4d4be9e Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 24 Apr 2008 09:55:13 +0000 Subject: Marcus Povey * 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 --- engine/lib/metadata.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engine/lib/metadata.php') diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 06c187a70..d05688ea3 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -105,7 +105,10 @@ $type = "metadata"; $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; } } -- cgit v1.2.3