summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-17 10:20:36 +0000
committerSteven Barth <steven@midlink.org>2008-08-17 10:20:36 +0000
commit75d4cca7ae10a39d9787afd5f1c2f14800491acd (patch)
treed78aa1fec1690510ed723f6c8433f71fda709e28 /themes/fledermaus/luasrc
parent746fa9df8f3d3443d82cd26d6717e7b5cf3dc8c1 (diff)
Fixed a design flaw in luci.model.uci
Diffstat (limited to 'themes/fledermaus/luasrc')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index ca6438111..db29affb9 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -154,7 +154,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;