From 55fe036dbf953c8cc41888c6e5809f5604249b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Bu=CC=88hner?= Date: Tue, 30 Aug 2016 11:43:50 +0200 Subject: [PATCH] Take the same path (with /USERNAME/ as base) for every emmited hooks --- apps/files_trashbin/lib/Trashbin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index 657cf79f877..4a4ff190edf 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -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); }