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);
|
$parents = array_reverse($parents);
|
||||||
|
|
||||||
$folder = $parents[count($parents)-1];
|
$folder = $parents[count($parents)-1];
|
||||||
$files = Book::getList($folder->section, $folder_id);
|
$files = Book::getList($folder->category, $folder_id);
|
||||||
|
|
||||||
$bc = [
|
$bc = [
|
||||||
['text' => lang('files'), 'url' => '/files/'],
|
['text' => lang('files'), 'url' => '/files/'],
|
||||||
|
@ -21,6 +21,7 @@ class Book
|
|||||||
public string $fileType;
|
public string $fileType;
|
||||||
public string $path;
|
public string $path;
|
||||||
public bool $external;
|
public bool $external;
|
||||||
|
public SectionType $category; // TODO: rename column to `section`
|
||||||
|
|
||||||
public function getId(): string {
|
public function getId(): string {
|
||||||
return $this->id;
|
return $this->id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user