From 357ba22175225ca40cfcffd1f61cc4621ff13dbe Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 17 May 2008 08:55:23 +0000 Subject: [PATCH] Added global imagepath --- core/root/etc/config/luci | 3 ++- core/src/template.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/root/etc/config/luci b/core/root/etc/config/luci index a2b61f483a..b15b152894 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 134e0a6a01..e74db7d64f 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, } -- 2.30.2