aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 20:50:20 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 20:50:20 +0000
commit05858d88d09f7594e427cde3fca8cdafa8bcae68 (patch)
tree4aabba6cc399aafe4934091ad27c1002def02fcd /engine
parent5cc5b3f17f8c4bab7998dbaccc89f914accddf39 (diff)
downloadelgg-05858d88d09f7594e427cde3fca8cdafa8bcae68.tar.gz
elgg-05858d88d09f7594e427cde3fca8cdafa8bcae68.tar.bz2
Fixes #2777: delete_entity is now recursive
git-svn-id: http://code.elgg.org/elgg/trunk@8258 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 850ea5b41..f74be3446 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1454,7 +1454,7 @@ function delete_entity($guid, $recursive = true) {
or site_guid=$guid", 'entity_row_to_elggstar');
if ($sub_entities) {
foreach ($sub_entities as $e) {
- $e->delete();
+ $e->delete(true);
}
}