luci-lua-runtime: fix loading header/footer templates for SimpleForms
authorJo-Philipp Wich <jo@mein.io>
Wed, 26 Oct 2022 13:30:11 +0000 (15:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 26 Oct 2022 13:30:11 +0000 (15:30 +0200)
Fixes: #6054
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-lua-runtime/luasrc/dispatcher.lua

index 7859ba17a3e53008fc24ab0456c09c42a4574e51..e009147f0521a1b26f9b72371c238cd0e5cd1e0e 100644 (file)
@@ -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