webmcp
annotate framework/env/request/get_module.lua @ 109:db7ad8e4f78b
Print 12:xx a.m., instead of 00:xx a.m.
author | jbe |
---|---|
date | Sun Nov 04 18:51:32 2012 +0100 (2012-11-04) |
parents | 2f8d8edd1836 |
children | 25a20bd1f416 |
rev | line source |
---|---|
jbe/bsw@0 | 1 --[[-- |
jbe/bsw@0 | 2 module_name = |
jbe/bsw@0 | 3 request.get_module() |
jbe/bsw@0 | 4 |
jbe/bsw@0 | 5 Returns the name of the module of the currently requested view or action. |
jbe/bsw@0 | 6 |
jbe/bsw@0 | 7 --]]-- |
jbe/bsw@0 | 8 |
jbe/bsw@0 | 9 function request.get_module() |
jbe/bsw@0 | 10 if request._forward_processed then |
jbe@91 | 11 return request._forward.module or request._module or 'index' |
jbe/bsw@0 | 12 else |
jbe@91 | 13 return request._module or 'index' |
jbe/bsw@0 | 14 end |
jbe/bsw@0 | 15 end |