From d4b93e4869604cce11e1fb8e2f2adff32c7ea13d Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 3 Jul 2022 14:21:02 +0200 Subject: [PATCH] Small tweak. --- .../nodes/folder_serve_nodes/browsable_folder_serve_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_node.cpp b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_node.cpp index 6bee10025..740d88c4e 100644 --- a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_node.cpp +++ b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_node.cpp @@ -125,7 +125,7 @@ void BrowsableFolderServeNode::render_dir_page(const String &dir_uri, const Vect for (int i = 0; i < folders.size(); ++i) { b.div("file_list_entry"); { - b.a(uri + folders[i])->w("(Folder) ")->w(folders[i].get_slicec('/', folders[i].get_slice_count("/") - 1))->ca(); + b.a(uri + folders[i])->w("(Folder) ")->w(folders[i].get_file())->ca(); } b.cdiv(); } @@ -133,7 +133,7 @@ void BrowsableFolderServeNode::render_dir_page(const String &dir_uri, const Vect for (int i = 0; i < files.size(); ++i) { b.div("file_list_entry"); { - b.a(uri + files[i])->w("(File) ")->w(files[i].get_slicec('/', files[i].get_slice_count("/") - 1))->ca(); + b.a(uri + files[i])->w("(File) ")->w(files[i].get_file())->ca(); } b.cdiv(); }