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:
commit
8c730f7a0c
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue