[Pkg-owncloud-commits] [owncloud] 61/66: Also remove home storages

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit f7db879301222149e1790641fa721e11acf95b43
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Feb 27 13:38:55 2014 +0100

    Also remove home storages
---
 lib/user.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/user.php b/lib/user.php
index e352a6b..690205f 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -223,7 +223,8 @@ class OC_User {
 
 			$home = self::getHome($uid);
 
-			\OC\Files\Cache\Cache::removeStorage('local::' . $home);
+			\OC\Files\Cache\Cache::removeStorage('local::' . $home . '/');
+			\OC\Files\Cache\Cache::removeStorage('home::' . $uid);
 
 			// Delete user files in /data/
 			OC_Helper::rmdirr(OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/'.$uid.'/');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list