From cd0fb5e44e5cb538d93024d02a14a02c00752641 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 6 Jun 2008 20:45:33 +0000 Subject: * Removed High-Level UCI-API due to Lua compiler bugs --- themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 8 +++++--- themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'themes') diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index 1b7c87532..0556bef86 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -120,9 +120,11 @@ end <% if "admin" == request[1] then local ucic = 0 - for n, s in pairs(require("luci.model.uci").changes()) do - for no, o in pairs(s) do - ucic = ucic + 1; + 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 %> diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index 5c354d5b4..8672b381a 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -120,9 +120,11 @@ end <% if "admin" == request[1] then local ucic = 0 - for n, s in pairs(require("luci.model.uci").changes()) do - for no, o in pairs(s) do - ucic = ucic + 1; + 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 %> -- cgit v1.2.3