From dd9606825da5d73883b8313f5af905ea1b2a4d7d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 5 Jun 2008 19:16:38 +0000 Subject: * Merged Luci to use native UCI-library --- themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'themes/openwrt.org/luasrc') 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 f18d0bce39..5c354d5b49 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -119,20 +119,16 @@ end <% if "admin" == request[1] then - require("luci.model.uci") local ucic = 0 - local changes = luci.model.uci.changes() - if type(changes) == "table" then -- XXX: sometimes string or nil / needs investigation - for n, s in pairs(changes) do - for no, o in pairs(s) do - ucic = ucic + 1; - end + for n, s in pairs(require("luci.model.uci").changes()) do + for no, o in pairs(s) do + ucic = ucic + 1; end end %>
<%:config Konfiguration%>