From: Steven Barth Date: Sat, 17 May 2008 08:55:23 +0000 (+0000) Subject: Added global imagepath X-Git-Tag: 0.8.0~1032 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=357ba22175225ca40cfcffd1f61cc4621ff13dbe;p=oweals%2Fluci.git Added global imagepath --- diff --git a/core/root/etc/config/luci b/core/root/etc/config/luci index a2b61f483..b15b15289 100644 --- a/core/root/etc/config/luci +++ b/core/root/etc/config/luci @@ -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 @@ -32,4 +33,4 @@ config internal languages option en "English" config internal themes - option Fledermaus "/ffluci/media" \ No newline at end of file + option Fledermaus "/ffluci/media" diff --git a/core/src/template.lua b/core/src/template.lua index 134e0a6a0..e74db7d64 100644 --- a/core/src/template.lua +++ b/core/src/template.lua @@ -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, }