diff options
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 cb378555f1..2aea59cfdc 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 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"> |