aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php4
1 files changed, 2 insertions, 2 deletions
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);