From d505f3e59f881fcf06a1aeeb2d8f95b4c5093113 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 22 Aug 2022 14:29:40 +0200 Subject: [PATCH] Call the proper method to render the menu. --- .../folder_serve_nodes/browsable_folder_serve_web_page.cpp | 2 +- modules/web/nodes/static_pages/static_web_page.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp index c80db2b0d..61a7f4350 100644 --- a/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp +++ b/modules/web/nodes/folder_serve_nodes/browsable_folder_serve_web_page.cpp @@ -25,7 +25,7 @@ void BrowsableFolderServeWebPage::_handle_request(Ref request) if (e.uri == file_name) { if (_should_render_menu) { - render_main_menu(request); + render_menu(request); } request->body += e.data; diff --git a/modules/web/nodes/static_pages/static_web_page.cpp b/modules/web/nodes/static_pages/static_web_page.cpp index ce43a771a..2dfaea54d 100644 --- a/modules/web/nodes/static_pages/static_web_page.cpp +++ b/modules/web/nodes/static_pages/static_web_page.cpp @@ -27,7 +27,7 @@ void StaticWebPage::set_should_render_menu(const bool &val) { void StaticWebPage::_handle_request(Ref request) { if (_should_render_menu) { - render_main_menu(request); + render_menu(request); } render_index(request);