summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
committerSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
commitdd9606825da5d73883b8313f5af905ea1b2a4d7d (patch)
tree1f853ae56dd8e3051698ac6d0a38d61bf6d6997f /modules/freifunk/luasrc/controller
parent75f3dbaa6136a1288fbe92d80fc127f5228f5d64 (diff)
* Merged Luci to use native UCI-library
Diffstat (limited to 'modules/freifunk/luasrc/controller')
-rw-r--r--modules/freifunk/luasrc/controller/freifunk/luciinfo.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua b/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua
index c4c6276018..f7cbbf0639 100644
--- a/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua
+++ b/modules/freifunk/luasrc/controller/freifunk/luciinfo.lua
@@ -5,8 +5,7 @@ function index()
end
function action_index()
- local uci = luci.model.uci.StateSession()
-
+ local uci = luci.model.uci
luci.http.prepare_content("text/plain")
-- General
@@ -30,7 +29,7 @@ function action_index()
-- Freifunk
- local ff = uci:sections("freifunk") or {}
+ local ff = uci.get_all("freifunk") or {}
for k, v in pairs(ff) do
for i, j in pairs(v) do
if i:sub(1, 1) ~= "." then