aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 14:48:29 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 14:48:29 +0000
commit5db7ae26689669479b327cd69b5c72ada3d819b9 (patch)
tree74b5beb5ee8e75df4d16e8fb0a2aa029644f49a5 /engine/lib/objects.php
parent005666d19b54d5aef654f96fd7b555d954cf425f (diff)
downloadelgg-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/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);