Merge pull request #19619 from owncloud/fix-19614-master
Fix single file download
This commit is contained in:
commit
f5c390fffd
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ class OC_Files {
|
|||
|
||||
if (is_array($files) && count($files) === 1) {
|
||||
$files = $files[0];
|
||||
}
|
||||
|
||||
if (!is_array($files)) {
|
||||
$filename = $dir . '/' . $files;
|
||||
if (!$view->is_dir($files)) {
|
||||
self::getSingleFile($view, $dir, $files, $onlyHeader);
|
||||
|
|
Loading…
Reference in a new issue