webmcp
annotate framework/env/request/get_relative_baseurl.lua @ 108:08c107cc4fce
Documentation of "hide_seconds" flag for format.time and format.timestamp
author | jbe |
---|---|
date | Sun Nov 04 18:46:29 2012 +0100 (2012-11-04) |
parents | 9fdfb27f8e67 |
children |
rev | line source |
---|---|
jbe/bsw@0 | 1 --[[-- |
jbe/bsw@0 | 2 baseurl = |
jbe/bsw@0 | 3 request.get_relative_baseurl() |
jbe/bsw@0 | 4 |
jbe/bsw@0 | 5 This function returns a relative base URL of the application. If request.force_absolute_baseurl() has been called before, an absolute URL is returned. |
jbe/bsw@0 | 6 |
jbe/bsw@0 | 7 --]]-- |
jbe/bsw@0 | 8 |
jbe/bsw@0 | 9 function request.get_relative_baseurl() |
jbe/bsw@0 | 10 if request._force_absolute_baseurl then |
jbe/bsw@0 | 11 return (request.get_absolute_baseurl()) |
jbe/bsw@0 | 12 else |
jbe/bsw@0 | 13 return request._relative_baseurl |
jbe/bsw@0 | 14 end |
jbe/bsw@0 | 15 end |