* Merged Luci to use native UCI-library
[project/luci.git] / themes / fledermaus / luasrc / view / themes / fledermaus / header.htm
index 40086d9..1b7c875 100644 (file)
@@ -119,10 +119,8 @@ end
                </div>
                <%
                        if "admin" == request[1] then
-                               require("luci.model.uci") 
                                local ucic = 0
-                               local changes = luci.model.uci.changes()
-                               for n, s in pairs(changes) do
+                               for n, s in pairs(require("luci.model.uci").changes()) do
                                        for no, o in pairs(s) do
                                                ucic = ucic + 1;
                                        end
@@ -130,7 +128,7 @@ end
                %>
                <div><%:config Konfiguration%>
                        <ul>
-                       <% if ucic then %>
+                       <% if ucic > 0 then %>
                                <li><a href="<%=controller%>/admin/uci/changes"><%:changes Ă„nderungen%>: <%=ucic%></a></li>
                                <li><a href="<%=controller%>/admin/uci/apply"><%:apply Anwenden%></a></li>
                                <li><a href="<%=controller%>/admin/uci/revert"><%:revert Verwerfen%></a></li>