From 91ba7c42f5b45614c9f4c803d09399f08a8e27b1 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 26 Aug 2008 23:00:44 +0000 Subject: UCI API changes --- applications/luci-splash/luasrc/controller/splash/splash.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-splash/luasrc/controller/splash/splash.lua') diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua index dbd266f461..b046ff409a 100644 --- a/applications/luci-splash/luasrc/controller/splash/splash.lua +++ b/applications/luci-splash/luasrc/controller/splash/splash.lua @@ -22,7 +22,7 @@ function action_activate() local mac = luci.sys.net.ip4mac(luci.http.getenv("REMOTE_ADDR")) if mac and luci.http.formvalue("accept") then os.execute("luci-splash add "..mac.." >/dev/null 2>&1") - luci.http.redirect(luci.model.uci.get("freifunk", "community", "homepage")) + luci.http.redirect(luci.model.uci.cursor():get("freifunk", "community", "homepage")) else luci.http.redirect(luci.dispatcher.build_url()) end -- cgit v1.2.3