fix
This commit is contained in:
parent
86333ba9f4
commit
a482babcba
@ -28,7 +28,7 @@ class FilesHandler extends request_handler {
|
|||||||
$folder = books_get_folder($folder_id);
|
$folder = books_get_folder($folder_id);
|
||||||
if (!$folder)
|
if (!$folder)
|
||||||
not_found();
|
not_found();
|
||||||
$files = books_get($folder_id);
|
$files = books_get($folder_id, category: $folder->category);
|
||||||
add_meta([
|
add_meta([
|
||||||
'$title' => lang('meta_files_book_folder_title', $folder->getTitle()),
|
'$title' => lang('meta_files_book_folder_title', $folder->getTitle()),
|
||||||
'$description' => lang('meta_files_book_folder_description', $folder->getTitle())
|
'$description' => lang('meta_files_book_folder_description', $folder->getTitle())
|
||||||
|
@ -626,6 +626,7 @@ class BookItem extends model implements FilesItemInterface {
|
|||||||
public BookFileType $fileType;
|
public BookFileType $fileType;
|
||||||
public string $path;
|
public string $path;
|
||||||
public bool $external;
|
public bool $external;
|
||||||
|
public BookCategory $category;
|
||||||
|
|
||||||
use FilesItemSizeTrait;
|
use FilesItemSizeTrait;
|
||||||
use FilesItemTypeTrait;
|
use FilesItemTypeTrait;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user