applications/luci-splash: Use a seperate config file for leases, #590
[project/luci.git] / applications / luci-splash / luasrc / view / admin_status / splash.htm
index a2a3605..61b32ba 100644 (file)
@@ -19,7 +19,6 @@ local ipt = require "luci.sys.iptparser".IptParser()
 local uci = require "luci.model.uci".cursor_state()
 local wat = require "luci.tools.webadmin"
 local fs  = require "nixio.fs"
-luci.i18n.loadc("splash")
 
 local clients = { }
 local leasetime = tonumber(uci:get("luci_splash", "general", "leasetime") or 1) * 60 * 60
@@ -31,7 +30,7 @@ uci:foreach("dhcp", "dnsmasq",
        end)
 
 
-uci:foreach("luci_splash", "lease",
+uci:foreach("luci_splash_leases", "lease",
        function(s)
                if s.start and s.mac then
                        clients[s.mac:lower()] = {
@@ -193,7 +192,7 @@ end
                                                s += '<option value="normal" selected="selected"><%:splashed%></option>';
                                                s += '<option value="kicked"><%:temporarily blocked%></option>'
                                        } else {
-                                               s += 'option value="normal"><%:splashed%></option>'
+                                               s += '<option value="normal"><%:splashed%></option>'
                                        };
                                        if (splash.policy == 'blacklist') {
                                                s+= '<option value="blacklist" selected="selected"><%:blacklisted%></option>'