Take the same path (with /USERNAME/ as base) for every emmited hooks

This commit is contained in:
Steven Bühner 2016-08-30 11:43:50 +02:00 committed by Lukas Reschke
parent a41541ae22
commit 55fe036dbf
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -473,7 +473,7 @@ class Trashbin {
$fileInfos = $view->getDirectoryContent('files_trashbin/files');
foreach($fileInfos as $fileInfo){
$path = $view->getRelativePath($fileInfo->getPath());
$path = $view->getRelativePath($fileInfo->getPath());
self::emitTrashbinPreDelete($path);
}
@ -482,7 +482,7 @@ class Trashbin {
$query->execute(array($user));
foreach($fileInfos as $fileInfo){
$path = $fileInfo->getPath();
$path = $view->getRelativePath($fileInfo->getPath());
self::emitTrashbinPostDelete($path);
}