webmcp
diff framework/env/request/__init.lua @ 96:db4bf2e6513c
Fixed errors in sample webserver configurations and request/__init.lua
author | jbe |
---|---|
date | Wed Oct 10 18:41:11 2012 +0200 (2012-10-10) |
parents | 2f8d8edd1836 |
children | 52305ec73d47 |
line diff
1.1 --- a/framework/env/request/__init.lua Wed Oct 10 18:29:08 2012 +0200 1.2 +++ b/framework/env/request/__init.lua Wed Oct 10 18:41:11 2012 +0200 1.3 @@ -25,6 +25,7 @@ 1.4 request._module = "index" 1.5 request._view = "index" 1.6 depth = 0 1.7 + return 1.8 end 1.9 module = string.match(path, "^([^/]+)/$") 1.10 if module then 1.11 @@ -65,8 +66,8 @@ 1.12 request._view = cgi.params._webmcp_view 1.13 request._suffix = cgi.params._webmcp_suffix 1.14 request._id = cgi.params._webmcp_id 1.15 + depth = tonumber(cgi.params._webmcp_urldepth) 1.16 end 1.17 - depth = tonumber(cgi.params._webmcp_urldepth) 1.18 end 1.19 if depth and depth > 0 then 1.20 local elements = {}