* luci/themes: oops I forgot the most important piece of code - fix last commit

This commit is contained in:
Jo-Philipp Wich 2008-06-04 21:04:51 +00:00
parent 25e71a2acf
commit b871cadf34
2 changed files with 10 additions and 6 deletions

View file

@ -122,9 +122,11 @@ end
require("luci.model.uci") require("luci.model.uci")
local ucic = 0 local ucic = 0
local changes = luci.model.uci.changes() local changes = luci.model.uci.changes()
for n, s in pairs(changes) do if changes then
for no, o in pairs(s) do for n, s in pairs(changes) do
ucic = ucic + 1; for no, o in pairs(s) do
ucic = ucic + 1;
end
end end
end end
%> %>

View file

@ -122,9 +122,11 @@ end
require("luci.model.uci") require("luci.model.uci")
local ucic = 0 local ucic = 0
local changes = luci.model.uci.changes() local changes = luci.model.uci.changes()
for n, s in pairs(changes) do if changes then
for no, o in pairs(s) do for n, s in pairs(changes) do
ucic = ucic + 1; for no, o in pairs(s) do
ucic = ucic + 1;
end
end end
end end
%> %>