luci-lua-runtime: fix loading header/footer templates for SimpleForms
Fixes: #6054 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
ca57291bdd
commit
81f204d38f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue