diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-12 22:27:16 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-12 22:51:28 +0200 |
commit | fde144c9be61d7886e81240233328a61d7088d08 (patch) | |
tree | c3761e58f8624abf43bd5468b76a25bf908f3495 /modules/luci-base/luasrc/view/header.htm | |
parent | e523bfd879f34ee92824e97bf57ceead3ac7bc37 (diff) |
luci-base: luci.js: add LuCI.fspath() helper
The LuCI.fspath() function allows constructing absolute filesystem paths
from path segments relative to the document root.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/view/header.htm')
-rw-r--r-- | modules/luci-base/luasrc/view/header.htm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/view/header.htm b/modules/luci-base/luasrc/view/header.htm index 4d30729809..9b49f4129f 100644 --- a/modules/luci-base/luasrc/view/header.htm +++ b/modules/luci-base/luasrc/view/header.htm @@ -22,6 +22,7 @@ resource = resource, scriptname = luci.http.getenv("SCRIPT_NAME"), pathinfo = luci.http.getenv("PATH_INFO"), + documentroot = luci.http.getenv("DOCUMENT_ROOT"), requestpath = luci.dispatcher.context.requestpath, dispatchpath = luci.dispatcher.context.path, pollinterval = luci.config.main.pollinterval or 5, |