4in1/files: fix book folder view
This commit is contained in:
parent
5526518b56
commit
d1651704bf
@ -44,7 +44,7 @@ class FilesHandler
|
||||
$parents = array_reverse($parents);
|
||||
|
||||
$folder = $parents[count($parents)-1];
|
||||
$files = Book::getList($folder->section, $folder_id);
|
||||
$files = Book::getList($folder->category, $folder_id);
|
||||
|
||||
$bc = [
|
||||
['text' => lang('files'), 'url' => '/files/'],
|
||||
|
@ -21,6 +21,7 @@ class Book
|
||||
public string $fileType;
|
||||
public string $path;
|
||||
public bool $external;
|
||||
public SectionType $category; // TODO: rename column to `section`
|
||||
|
||||
public function getId(): string {
|
||||
return $this->id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user