summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/dispatcher.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 9025529d71..03e7c7d659 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -517,11 +517,11 @@ function cbi(model)
end
http.header("X-CBI-State", state or 0)
- luci.template.render("cbi/header")
+ luci.template.render("cbi/header", {state = state})
for i, res in ipairs(maps) do
res:render()
end
- luci.template.render("cbi/footer")
+ luci.template.render("cbi/footer", {state = state})
end
end