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/openwrt.org/luasrc | |
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/openwrt.org/luasrc')
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 10 |
1 files changed, 6 insertions, 4 deletions
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 4efde4a62c..71328e4141 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"> |