diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-11 17:48:00 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-11 17:48:00 +0000 |
commit | 23852faf24d7e0f88c69a5e8599264b2e56586b0 (patch) | |
tree | a65b84318910c5cfee99798b2ecc30947f8e8e37 /engine/lib | |
parent | 6c7a53a9b740c50840db0ba9319af00c37a663ae (diff) | |
download | elgg-23852faf24d7e0f88c69a5e8599264b2e56586b0.tar.gz elgg-23852faf24d7e0f88c69a5e8599264b2e56586b0.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Fixed subclass
git-svn-id: https://code.elgg.org/elgg/trunk@437 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index ab682fb2f..7b22424a9 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -390,7 +390,7 @@ $tmp[] = new ODDEntity( $uuid, $this->attributes['type'], - get_subtype_from_id($tmp->attributes['subtype']) + get_subtype_from_id($this->attributes['subtype']) ); // Now add its attributes @@ -399,24 +399,24 @@ switch ($k) { case 'guid' : break; // Dont use guid - case 'subtype' : break; // Hide subtype + case 'subtype' : break; // The subtype case 'type' : break; // Don't use type case 'access_id' : break; // Don't use access - if can export then its public for you, then importer decides what access to give this object. case 'owner_guid' : // Convert owner guid to uuid $k = 'owner_uuid'; $v = guid_to_uuid($v); - $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v, "attribute"); + $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v); break; case 'time_created' : // Convert to RFC 822 case 'time_updated' : // Convert to RFC 822 $v = date('r', $v); - $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v, "attribute"); + $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v); break; default : - $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v, "attribute"); + $tmp[] = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v); } } |