projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
173ceee
)
Assign correct path attribute to nodes
author
Steven Barth
<steven@midlink.org>
Sun, 16 Nov 2008 13:52:39 +0000
(13:52 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 16 Nov 2008 13:52:39 +0000
(13:52 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index b0c35d08f4650f31cdba59cb82dfa50de061ca17..4d41e5f3e76475ca03ac2272c9532296cb527f39 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-414,7
+414,6
@@
function node(...)
local c = _create_node({...})
c.module = getfenv(2)._NAME
- c.path = arg
c.auto = nil
return c
@@
-430,10
+429,11
@@
function _create_node(path, cache)
local c = cache[name]
if not c then
+ local new = {nodes={}, auto=true, path=util.clone(path)}
local last = table.remove(path)
+
c = _create_node(path, cache)
- local new = {nodes={}, auto=true}
c.nodes[last] = new
cache[name] = new