diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-06-03 22:42:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-06-03 22:42:01 +0000 |
commit | 77f8074a01277917ab9ab0d00778f59bb0a88817 (patch) | |
tree | 0a74c83baa97175d553a900ff1378b68fced149d /themes | |
parent | 3bcf6dbea363d7267d95bb0199d91603a33362b7 (diff) |
make use of the new features in the binding for uci v0.4.0 - fixes remaining dependencies of libuci.lua on the cli
Diffstat (limited to 'themes')
-rw-r--r-- | themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 10 | ||||
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index cb378555f..2aea59cfd 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -120,9 +120,11 @@ end <% if "admin" == request[1] then require("luci.model.uci") - local ucic = luci.model.uci.changes() - if ucic then - ucic = #luci.util.split(ucic) + local ucic = 0 + for n, s in pairs(luci.model.uci.changes()) do + for no, o in pairs(s) do + ucic = ucic + 1; + end end %> <div><%:config Konfiguration%> @@ -138,4 +140,4 @@ end </div> <% end %> </div> - <div id="content">
\ No newline at end of file + <div id="content"> 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 4efde4a62..71328e414 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -120,9 +120,11 @@ end <% if "admin" == request[1] then require("luci.model.uci") - local ucic = luci.model.uci.changes() - if ucic then - ucic = #luci.util.split(ucic) + local ucic = 0 + for n, s in pairs(luci.model.uci.changes()) do + for no, o in pairs(s) do + ucic = ucic + 1; + end end %> <div><%:config Konfiguration%> @@ -138,4 +140,4 @@ end </div> <% end %> </div> - <div id="content">
\ No newline at end of file + <div id="content"> |