diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
commit | 5db7ae26689669479b327cd69b5c72ada3d819b9 (patch) | |
tree | 74b5beb5ee8e75df4d16e8fb0a2aa029644f49a5 /engine/lib/sites.php | |
parent | 005666d19b54d5aef654f96fd7b555d954cf425f (diff) | |
download | elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.gz elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.bz2 |
register_event_handler and trigger_event have been renamed to register_elgg_event_handler and trigger_elgg_event respectively.
git-svn-id: https://code.elgg.org/elgg/trunk@848 36083f99-b078-4883-b0ff-0f9b5a30f544
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 |