* Merged Luci to use native UCI-library
[project/luci.git] / modules / freifunk / luasrc / controller / freifunk / luciinfo.lua
index c4c627601846c8be2213b3027cf9f3f58c9afe62..f7cbbf0639fe0e4c1474fe5342b86b2491c84b37 100644 (file)
@@ -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