4in1/files: fix book folder view

This commit is contained in:
E. S. 2025-04-28 15:45:04 +03:00
parent 5526518b56
commit d1651704bf
2 changed files with 2 additions and 1 deletions

View File

@ -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/'],

View File

@ -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;