Added infobox for empty folder on collections

This commit is contained in:
Luis 2021-03-02 12:21:13 +00:00 committed by Daniel Rodriguez
parent b2ed2f5511
commit 28b8092669

View File

@ -595,6 +595,7 @@ function filemanager_file_explorer(
$files = filemanager_list_dir($real_directory);
if (!empty($files)) {
$table = new stdClass();
$table->width = '100%';
$table->id = 'table_filemanager';
@ -768,6 +769,14 @@ function filemanager_file_explorer(
array_push($table->data, $data);
}
} else {
ui_print_info_message(
[
'no_close' => true,
'message' => __('No files or directories to show.'),
]
);
}
if (!$readOnly) {
if (is_writable($real_directory)) {