prove some compatibility with the old cache api
This commit is contained in:
parent
6db81afab9
commit
7d6da68d53
1 changed files with 5 additions and 1 deletions
|
@ -712,7 +712,7 @@ class View {
|
|||
$files = $cache->getFolderContents($internalPath); //TODO: mimetype_filter
|
||||
|
||||
//add a folder for any mountpoint in this directory and add the sizes of other mountpoints to the folders
|
||||
$mountPoints = Filesystem::getMountPoints($directory);
|
||||
$mountPoints = Filesystem::getMountPoints($path);
|
||||
$dirLength = strlen($path);
|
||||
foreach ($mountPoints as $mountPoint) {
|
||||
$subStorage = Filesystem::getStorage($mountPoint);
|
||||
|
@ -733,6 +733,10 @@ class View {
|
|||
}
|
||||
}
|
||||
|
||||
foreach($files as $i => $file){
|
||||
$files[$i]['type'] = $file['mimetype'] === 'httpd/unix-directory' ? 'dir' : 'file';
|
||||
}
|
||||
|
||||
usort($files, "fileCmp"); //TODO: remove this once ajax is merged
|
||||
return $files;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue