Fixed a design flaw in luci.model.uci
[project/luci.git] / themes / openwrt.org / luasrc / view / themes / openwrt.org / header.htm
index 6b83114..b3a53c5 100644 (file)
@@ -162,7 +162,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;