summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-26 23:00:44 +0000
committerSteven Barth <steven@midlink.org>2008-08-26 23:00:44 +0000
commit91ba7c42f5b45614c9f4c803d09399f08a8e27b1 (patch)
tree21d1e1d67b3bee82eb123c0c5dbb274f2fcb6b59 /themes
parent43b3217e5595acc91ff6d7614a5c21c88696fbcc (diff)
UCI API changes
Diffstat (limited to 'themes')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm5
-rw-r--r--themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm4
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm4
3 files changed, 4 insertions, 9 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 5cc240ef6..a109582f7 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -154,9 +154,8 @@ 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;
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 0d9d1bd2e..48f2a5f24 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;
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
index d412ec9cc..6078d44ff 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -162,9 +162,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;