Merge branch 'ent-6522-fallo-visual-vista-ficheros-colecciones' into 'develop'

Added infobox for empty folder on collections

See merge request artica/pandorafms!3717
This commit is contained in:
Daniel Rodriguez 2021-03-02 12:21:13 +00:00
commit 8c730f7a0c
1 changed files with 164 additions and 155 deletions

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)) {