* Removed High-Level UCI-API due to Lua compiler bugs
[project/luci.git] / themes / openwrt.org / luasrc / view / themes / openwrt.org / header.htm
index 4efde4a..8672b38 100644 (file)
@@ -119,15 +119,18 @@ end
                </div>
                <%
                        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 i, j in pairs(require("luci.model.uci").changes()) do
+                                       for k, l in pairs(j) do
+                                               for m, n in pairs(l) do
+                                                       ucic = ucic + 1;
+                                               end
+                                       end
                                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>
@@ -138,4 +141,4 @@ end
                </div>
                <% end %>
        </div>
-       <div id="content">
\ No newline at end of file
+       <div id="content">