Added global imagepath

This commit is contained in:
Steven Barth 2008-05-17 08:55:23 +00:00
parent bc253802f4
commit 357ba22175
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
config core main config core main
option lang de option lang de
option mediaurlbase /ffluci/media option mediaurlbase /ffluci/media
option imagebase /ffluci/images
config core category_privileges config core category_privileges
option public nobody:nogroup option public nobody:nogroup
@ -32,4 +33,4 @@ config internal languages
option en "English" option en "English"
config internal themes config internal themes
option Fledermaus "/ffluci/media" option Fledermaus "/ffluci/media"

View file

@ -54,6 +54,7 @@ viewns = {
config = function(...) return require("ffluci.model.uci").get(...) or "" end, config = function(...) return require("ffluci.model.uci").get(...) or "" end,
controller = ffluci.http.env.SCRIPT_NAME or "", controller = ffluci.http.env.SCRIPT_NAME or "",
media = ffluci.config.main.mediaurlbase, media = ffluci.config.main.mediaurlbase,
images = ffluci.config.main.imagebase,
write = io.write, write = io.write,
include = function(name) Template(name):render(getfenv(2)) end, include = function(name) Template(name):render(getfenv(2)) end,
} }