From ee324cb3a70d39dc9522a1ee63af12137d433533 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 29 Jun 2008 14:42:53 +0000 Subject: * applications/luci-splash: Rewrote luci-splash using an own daemon implementation * Minor tweaks in luci.dispatcher --- libs/web/luasrc/dispatcher.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/web') diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 426dd66bd0..7c28f6a78e 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -314,7 +314,7 @@ end -- Shortcut for creating a dispatching node function entry(path, target, title, order) - local c = node(path) + local c = node(unpack(path)) c.target = target c.title = title @@ -328,11 +328,6 @@ end function node(...) local c = context.tree arg.n = nil - if arg[1] then - if type(arg[1]) == "table" then - arg = arg[1] - end - end for k,v in ipairs(arg) do if not c.nodes[v] then -- cgit v1.2.3