diff options
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index f4478445a..5f496a58d 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -274,7 +274,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); @@ -286,7 +286,7 @@ $result = insert_data("INSERT into {$CONFIG->dbprefix}sites_entity (guid, name, description, url) values ($guid, '$name','$description','$url')"); 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); @@ -517,6 +517,6 @@ // Register event handlers
- register_event_handler('boot','system','sites_init',2);
+ register_elgg_event_handler('boot','system','sites_init',2);
?>
\ No newline at end of file |