summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt-light/luasrc/view
diff options
context:
space:
mode:
Diffstat (limited to 'themes/openwrt-light/luasrc/view')
-rw-r--r--themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm4
1 files changed, 1 insertions, 3 deletions
diff --git a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
index 0d9d1bd2e5..48f2a5f243 100644
--- a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
+++ b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
@@ -161,9 +161,7 @@ end
<%
if tree.nodes[category] and tree.nodes[category].ucidata then
local ucic = 0
- require("luci.model.uci")
- luci.model.uci.set_savedir(luci.model.uci.savedir_default)
- for i, j in pairs(luci.model.uci.changes()) do
+ for i, j in pairs(require("luci.model.uci").cursor():changes()) do
for k, l in pairs(j) do
for m, n in pairs(l) do
ucic = ucic + 1;