aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-09 09:28:00 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-09 09:28:00 +0000
commit794f9041e48d863c539e203a1103b4090d2aace2 (patch)
treee50d777de9bbe9b319c25b4f37dc35dec635cb2e /engine/lib/metadata.php
parent75a9e7176004492c3a2b0180f05dc93a4abf3c53 (diff)
downloadelgg-794f9041e48d863c539e203a1103b4090d2aace2.tar.gz
elgg-794f9041e48d863c539e203a1103b4090d2aace2.tar.bz2
Closes #338: You're quite right, this is was an error on our part. Nice spot!
git-svn-id: https://code.elgg.org/elgg/trunk@2065 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 f8089f721..afb480ce5 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -243,7 +243,7 @@
if ($id!==false) {
$obj = get_metadata($id);
- if (trigger_elgg_event('create', $name, $obj)) {
+ if (trigger_elgg_event('create', 'metadata', $obj)) {
return true;
} else {
delete_metadata($id);
@@ -309,7 +309,7 @@
$result = update_data("UPDATE {$CONFIG->dbprefix}metadata set value_id='$value', value_type='$value_type', access_id=$access_id, owner_guid=$owner_guid where id=$id and name_id='$name'");
if ($result!==false) {
$obj = get_metadata($id);
- if (trigger_elgg_event('update', $name, $obj)) {
+ if (trigger_elgg_event('update', 'metadata', $obj)) {
return true;
} else {
delete_metadata($id);