X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=themes%2Ffledermaus%2Fluasrc%2Fview%2Fthemes%2Ffledermaus%2Fheader.htm;h=40086d9ca760e135cb1c6c12df2ce27b9a3df4ce;hp=cb378555f1056b48c81241611bc6d197d62fbb60;hb=25e71a2acf91c084bf18049fc0d159fa19673876;hpb=56a23c609c30cf6c477bf6523661a44821da1819 diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index cb378555f..40086d9ca 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -120,9 +120,12 @@ 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 + local changes = luci.model.uci.changes() + for n, s in pairs(changes) do + for no, o in pairs(s) do + ucic = ucic + 1; + end end %>
<%:config Konfiguration%> @@ -138,4 +141,4 @@ end
<% end %> -
\ No newline at end of file +