summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-02-19 21:31:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-02-19 21:31:33 +0000
commitb6406c3980e472bcb05144640b2b91a119619a5b (patch)
tree9b03a6937f1a11f5829dd58382b801305aa39e0e /applications/luci-splash/luasrc/controller
parenteb1c3685db9af6d1e6d30cf859d0e5b493b7807f (diff)
applications/luci-splash: fix redirections and form targets
Diffstat (limited to 'applications/luci-splash/luasrc/controller')
-rw-r--r--applications/luci-splash/luasrc/controller/splash/splash.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua
index b046ff409a..5731efc8ca 100644
--- a/applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/applications/luci-splash/luasrc/controller/splash/splash.lua
@@ -4,8 +4,8 @@ function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
- node("splash", "splash", "activate").target = call("action_activate")
- node("splash", "splash", "splash").target = template("splash_splash/splash")
+ node("splash", "activate").target = call("action_activate")
+ node("splash", "splash").target = template("splash_splash/splash")
end
function action_dispatch()
@@ -14,7 +14,7 @@ function action_dispatch()
if #mac > 0 and ( status == "whitelisted" or status == "lease" ) then
luci.http.redirect(luci.dispatcher.build_url())
else
- luci.http.redirect(luci.dispatcher.build_url("splash", "splash", "splash"))
+ luci.http.redirect(luci.dispatcher.build_url("splash", "splash"))
end
end