From afafc8ccba96d65de9ac6d59d551be1f6d5264ac Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Aug 2016 15:43:34 +0200 Subject: [PATCH] calling (static) EGroupware\Api\Vfs::chown instead of using old egw_vfs not available in minimal install in account::deleted hook when moving home directory to /home/$new_user/old-home-$old_user --- api/src/Vfs.php | 2 +- api/src/Vfs/Hooks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 8b74d41ea0..174da52920 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -742,7 +742,7 @@ class Vfs throw new Exception\AssertionFailed(__METHOD__.'('.array2string($urls).") Cautiously rejecting to remove folder '$url'!"); } } - return self::find($urls,array('depth'=>true,'url'=>$allow_urls,'hidden'=>true),array(__CLASS__,'_rm_rmdir')); + return self::find($urls, array('depth'=>true,'url'=>$allow_urls,'hidden'=>true), __CLASS__.'::_rm_rmdir'); } /** diff --git a/api/src/Vfs/Hooks.php b/api/src/Vfs/Hooks.php index a496fd3cf8..f5068a4e1d 100644 --- a/api/src/Vfs/Hooks.php +++ b/api/src/Vfs/Hooks.php @@ -96,7 +96,7 @@ class Hooks } Api\Vfs::rename('/home/'.$data['account_lid'],$new_dir); // make the new owner the owner of the dir and it's content - Api\Vfs::find($new_dir,array(),array('egw_vfs','chown'),$data['new_owner']); + Api\Vfs::find($new_dir, array(), 'EGroupware\Api\Vfs::chown', $data['new_owner']); } elseif(!empty($data['account_lid']) && $data['account_lid'] != '/') {