From 81f204d38f089ce6114bd67659c72e07ffbd57b4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Oct 2022 15:30:11 +0200 Subject: luci-lua-runtime: fix loading header/footer templates for SimpleForms Fixes: #6054 Signed-off-by: Jo-Philipp Wich --- modules/luci-lua-runtime/luasrc/dispatcher.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-lua-runtime') diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua index 7859ba17a3..e009147f05 100644 --- a/modules/luci-lua-runtime/luasrc/dispatcher.lua +++ b/modules/luci-lua-runtime/luasrc/dispatcher.lua @@ -346,11 +346,11 @@ function invoke_form_action(model, ...) end http:header("X-CBI-State", state or 0) - tpl.render("header") + _G.L.include("header") for i, res in ipairs(maps) do res:render() end - tpl.render("footer") + _G.L.include("footer") end -- cgit v1.2.3