summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/VersionManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/lib/Versions/VersionManager.php')
-rw-r--r--apps/files_versions/lib/Versions/VersionManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Versions/VersionManager.php b/apps/files_versions/lib/Versions/VersionManager.php
index c11b429202b..5a2480d6233 100644
--- a/apps/files_versions/lib/Versions/VersionManager.php
+++ b/apps/files_versions/lib/Versions/VersionManager.php
@@ -96,7 +96,7 @@ class VersionManager implements IVersionManager, INameableVersionBackend, IDelet
$backend = $version->getBackend();
$result = $backend->rollback($version);
\OC_Hook::emit('\OCP\Versions', 'rollback', [
- 'path' => \OC\Files\Filesystem::getView()->getRelativePath($version->getSourceFile()->getPath()),
+ 'path' => $version->getVersionPath(),
'revision' => $version->getRevisionId(),
'node' => $version->getSourceFile(),
]);