From db0fa6c5292003e913aac248e2ee60c77301bd26 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 29 Oct 2013 18:01:37 +0100 Subject: use getHome() to delete users data --- lib/private/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/user.php') diff --git a/lib/private/user.php b/lib/private/user.php index 710f0fd66db..f15fdf1dbbc 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -195,12 +195,12 @@ class OC_User { // We have to delete the user from all groups foreach (OC_Group::getUserGroups($uid) as $i) { OC_Group::removeFromGroup($uid, $i); - } + } // Delete the user's keys in preferences - OC_Preferences::deleteUser($uid); + OC_Preferences::deleteUser($uid); // Delete user files in /data/ - OC_Helper::rmdirr(OC_Config::getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid . '/'); + OC_Helper::rmdirr(\OC_User::getHome($uid)); // Remove it from the Cache self::getManager()->delete($uid); -- cgit v1.2.3