summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-11-16 13:52:50 +0000
committerSteven Barth <steven@midlink.org>2008-11-16 13:52:50 +0000
commitd0939b4e3371fb99d1b14033b54116b5bff4fbe1 (patch)
treeb77a839d8eee439b2194d80c0a0adee5905ac36a /libs
parent47f8c9c71a42e10a736157ebbd409a228c367ee5 (diff)
Assign correct path attribute to nodes
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/dispatcher.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index b48b58487..5fb50dcb1 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -438,7 +438,6 @@ function node(...)
local c = _create_node({...})
c.module = getfenv(2)._NAME
- c.path = arg
c.auto = nil
return c
@@ -454,10 +453,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