fix paths of searchByMime results on substorages
This commit is contained in:
parent
3fc809dfd8
commit
456ca0cf7d
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue