summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-lua-runtime
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-10-26 15:30:11 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-26 15:30:11 +0200
commit81f204d38f089ce6114bd67659c72e07ffbd57b4 (patch)
treece110c25ea26135b62ed46b77416e1adaef9d4f2 /modules/luci-lua-runtime
parentca57291bdd3afbeae073ee315305d1ecc57f7f76 (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.lua4
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