diff options
| author | Steven Barth <steven@midlink.org> | 2008-11-16 13:52:39 +0000 |
|---|---|---|
| committer | Steven Barth <steven@midlink.org> | 2008-11-16 13:52:39 +0000 |
| commit | 1ecec8981cb15c547659022cb05eb2a2c2640fc4 (patch) | |
| tree | eca3aa9892ec277e286da44f6796dda6494814fc | |
| parent | 173ceeecd011f329c85838ec6e93586163cf9b39 (diff) | |
Assign correct path attribute to nodes
| -rw-r--r-- | libs/web/luasrc/dispatcher.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index b0c35d08f4..4d41e5f3e7 100644 --- 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 |
