summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/luci-lua-runtime/luasrc/dispatcher.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua
index 8889853b98..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
@@ -392,7 +392,7 @@ function cbi(model, config)
["type"] = "call",
["module"] = "luci.dispatcher",
["function"] = "invoke_cbi_action",
- ["parameters"] = { model, config },
+ ["parameters"] = { model, config or {} },
["post"] = {
["cbi.submit"] = true
}