aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-23 19:43:49 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-23 19:43:49 +0000
commit8f2d3255c30320ab06c2081cd4d7e446e90747cf (patch)
tree04c594a48d5c69a1a04813e7fdfc23c720a10002 /engine/lib/users.php
parenta13dcbfbd2f47aeae09ec2270d36c1131e28362e (diff)
downloadelgg-8f2d3255c30320ab06c2081cd4d7e446e90747cf.tar.gz
elgg-8f2d3255c30320ab06c2081cd4d7e446e90747cf.tar.bz2
Deleting a user will remove all user files.
Fixes #607 git-svn-id: http://code.elgg.org/elgg/trunk@3700 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 313566dfd..d7d13bdfe 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -156,6 +156,7 @@ class ElggUser extends ElggEntity
// Delete owned data
clear_annotations_by_owner($this->guid);
clear_metadata_by_owner($this->guid);
+ clear_user_files($this);
// Delete entity
return parent::delete();