summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/controller
diff options
context:
space:
mode:
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