projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* luci/themes: fix admin header template, crashes badly when luci.model.uci.changes...
[project/luci.git]
/
themes
/
fledermaus
/
luasrc
/
view
/
themes
/
fledermaus
/
header.htm
diff --git
a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index
cb37855
..
40086d9
100644
(file)
--- 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")
<%
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
%>
<div><%:config Konfiguration%>
end
%>
<div><%:config Konfiguration%>
@@
-138,4
+141,4
@@
end
</div>
<% end %>
</div>
</div>
<% end %>
</div>
- <div id="content">
\ No newline at end of file
+ <div id="content">