* 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 2aea59c..40086d9 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 71328e4..3ecc8d7 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