aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index f012b3cb4..bac6021b8 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -293,7 +293,8 @@
if (trigger_elgg_event('update',$entity->type,$entity)) {
return $guid;
} else {
- delete_entity($guid);
+ $entity->delete();
+ //delete_entity($guid);
}
}
}
@@ -306,7 +307,8 @@
if (trigger_elgg_event('create',$entity->type,$entity)) {
return $guid;
} else {
- delete_entity($guid);
+ $entity->delete();
+ //delete_entity($guid);
}
}
}