* luci/themes: fix admin header template, crashes badly when luci.model.uci.changes...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Jun 2008 21:01:48 +0000 (21:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Jun 2008 21:01:48 +0000 (21:01 +0000)
themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 2aea59cfdc260733f48dba4c3988418b03ca3d32..40086d9ca760e135cb1c6c12df2ce27b9a3df4ce 100644 (file)
@@ -121,7 +121,8 @@ end
                        if "admin" == request[1] then
                                require("luci.model.uci") 
                                local ucic = 0
-                               for n, s in pairs(luci.model.uci.changes()) do
+                               local changes = luci.model.uci.changes()
+                               for n, s in pairs(changes) do
                                        for no, o in pairs(s) do
                                                ucic = ucic + 1;
                                        end
index 71328e414150a349c9c0d85e78973ff90fb69fdc..3ecc8d73ca1e0ba17276ff142f1fe469a644182c 100644 (file)
@@ -121,7 +121,8 @@ end
                        if "admin" == request[1] then
                                require("luci.model.uci") 
                                local ucic = 0
-                               for n, s in pairs(luci.model.uci.changes()) do
+                                local changes = luci.model.uci.changes()
+                                for n, s in pairs(changes) do
                                        for no, o in pairs(s) do
                                                ucic = ucic + 1;
                                        end