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

This commit is contained in:
Ralf Becker 2016-08-15 15:43:34 +02:00
parent 43432ca501
commit afafc8ccba
2 changed files with 2 additions and 2 deletions

View File

@ -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');
}
/**

View File

@ -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'] != '/')
{