aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 03:46:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 03:46:22 +0000
commitf2f56bd289aad331634b4e5bfaae8e67795a63f8 (patch)
tree240b317b42cdc4a29da8c18563ddb6902805bd8e /engine/lib/metadata.php
parentc9d4cf5b0b0f5ad3056cd4d6dc744a8b4890fb4e (diff)
downloadelgg-f2f56bd289aad331634b4e5bfaae8e67795a63f8.tar.gz
elgg-f2f56bd289aad331634b4e5bfaae8e67795a63f8.tar.bz2
Removed last of deprecated metadata calls in trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@8224 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index c05e0b161..230bce50f 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -135,7 +135,7 @@ function create_metadata($entity_guid, $name, $value, $value_type, $owner_guid,
if (elgg_trigger_event('create', 'metadata', $obj)) {
return $id;
} else {
- delete_metadata($id);
+ elgg_delete_metadata_by_id($id);
}
}
}
@@ -219,7 +219,7 @@ function update_metadata($id, $name, $value, $value_type, $owner_guid, $access_i
if (elgg_trigger_event('update', 'metadata', $obj)) {
return true;
} else {
- delete_metadata($id);
+ elgg_delete_metadata_by_id($id);
}
}