Added global imagepath
This commit is contained in:
parent
bc253802f4
commit
357ba22175
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
config core main
|
||||
option lang de
|
||||
option mediaurlbase /ffluci/media
|
||||
option imagebase /ffluci/images
|
||||
|
||||
config core category_privileges
|
||||
option public nobody:nogroup
|
||||
|
|
|
@ -54,6 +54,7 @@ viewns = {
|
|||
config = function(...) return require("ffluci.model.uci").get(...) or "" end,
|
||||
controller = ffluci.http.env.SCRIPT_NAME or "",
|
||||
media = ffluci.config.main.mediaurlbase,
|
||||
images = ffluci.config.main.imagebase,
|
||||
write = io.write,
|
||||
include = function(name) Template(name):render(getfenv(2)) end,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue