Skip to content
Snippets Groups Projects
Commit 456ca0cf authored by Robin Appelman's avatar Robin Appelman
Browse files

fix paths of searchByMime results on substorages

parent 3fc809df
No related branches found
No related tags found
No related merge requests found
...@@ -1109,8 +1109,9 @@ class View { ...@@ -1109,8 +1109,9 @@ class View {
if ($results) { if ($results) {
foreach ($results as $result) { foreach ($results as $result) {
$internalPath = $result['path']; $internalPath = $result['path'];
$result['path'] = $relativeMountPoint . $result['path']; $result['path'] = rtrim($relativeMountPoint . $result['path'], '/');
$files[] = new FileInfo($mountPoint . $result['path'], $storage, $internalPath, $result); $path = rtrim($mountPoint . $internalPath, '/');
$files[] = new FileInfo($path, $storage, $internalPath, $result);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment