From 794f9041e48d863c539e203a1103b4090d2aace2 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 9 Sep 2008 09:28:00 +0000 Subject: 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 --- engine/lib/annotations.php | 4 ++-- engine/lib/metadata.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engine') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 9df54af2f..4d84b2d34 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -186,7 +186,7 @@ $result = insert_data("INSERT into {$CONFIG->dbprefix}annotations (entity_guid, name_id, value_id, value_type, owner_guid, time_created, access_id) VALUES ($entity_guid,'$name',$value,'$value_type', $owner_guid, $time, $access_id)"); if ($result!==false) { $obj = get_annotation($result); - if (trigger_elgg_event('create', $name, $obj)) { + if (trigger_elgg_event('create', 'annotation', $obj)) { return true; } else { delete_annotation($result); @@ -233,7 +233,7 @@ $result = update_data("UPDATE {$CONFIG->dbprefix}annotations set value_id='$value', value_type='$value_type', access_id=$access_id, owner_guid=$owner_guid where id=$annotation_id and name_id='$name' and $access"); if ($result!==false) { $obj = get_annotation($annotation_id); - if (trigger_elgg_event('update', $name, $obj)) { + if (trigger_elgg_event('update', 'annotation', $obj)) { return true; } else { delete_annotation($annotation_id); 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); -- cgit v1.2.3