From 75d4cca7ae10a39d9787afd5f1c2f14800491acd Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 17 Aug 2008 10:20:36 +0000 Subject: Fixed a design flaw in luci.model.uci --- themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'themes/openwrt-light/luasrc/view') 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 e9e1a135a..fe0fa0b33 100644 --- a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm +++ b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm @@ -161,7 +161,9 @@ end <% if tree.nodes[category] and tree.nodes[category].ucidata then local ucic = 0 - for i, j in pairs(require("luci.model.uci").changes()) do + 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 k, l in pairs(j) do for m, n in pairs(l) do ucic = ucic + 1; -- cgit v1.2.3