diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-10-26 15:30:11 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-26 15:30:11 +0200 |
commit | 81f204d38f089ce6114bd67659c72e07ffbd57b4 (patch) | |
tree | ce110c25ea26135b62ed46b77416e1adaef9d4f2 /modules/luci-lua-runtime | |
parent | ca57291bdd3afbeae073ee315305d1ecc57f7f76 (diff) |
luci-lua-runtime: fix loading header/footer templates for SimpleForms
Fixes: #6054
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-lua-runtime')
-rw-r--r-- | modules/luci-lua-runtime/luasrc/dispatcher.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |