aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index 925cf6c88..1914744a6 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -241,7 +241,7 @@
{
// Update succeeded, continue
$entity = get_entity($guid);
- if (trigger_event('update',$entity->type,$entity)) {
+ if (trigger_elgg_event('update',$entity->type,$entity)) {
return true;
} else {
delete_entity($guid);
@@ -254,7 +254,7 @@
$result = insert_data("INSERT into {$CONFIG->dbprefix}objects_entity (guid, title, description) values ($guid, '$title','$description')");
if ($result!==false) {
$entity = get_entity($guid);
- if (trigger_event('create',$entity->type,$entity)) {
+ if (trigger_elgg_event('create',$entity->type,$entity)) {
return true;
} else {
delete_entity($guid);