mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
Added infobox for empty folder on collections
This commit is contained in:
parent
b2ed2f5511
commit
28b8092669
@ -595,6 +595,7 @@ function filemanager_file_explorer(
|
|||||||
|
|
||||||
$files = filemanager_list_dir($real_directory);
|
$files = filemanager_list_dir($real_directory);
|
||||||
|
|
||||||
|
if (!empty($files)) {
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->id = 'table_filemanager';
|
$table->id = 'table_filemanager';
|
||||||
@ -768,6 +769,14 @@ function filemanager_file_explorer(
|
|||||||
|
|
||||||
array_push($table->data, $data);
|
array_push($table->data, $data);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ui_print_info_message(
|
||||||
|
[
|
||||||
|
'no_close' => true,
|
||||||
|
'message' => __('No files or directories to show.'),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$readOnly) {
|
if (!$readOnly) {
|
||||||
if (is_writable($real_directory)) {
|
if (is_writable($real_directory)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user