summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-17 08:55:23 +0000
committerSteven Barth <steven@midlink.org>2008-05-17 08:55:23 +0000
commit357ba22175225ca40cfcffd1f61cc4621ff13dbe (patch)
tree9ad02ebce522ef03ddb788b29a9a26b514c9fbd0
parentbc253802f4dbb58aef372e4a815db4cb5d54d73d (diff)
Added global imagepath
-rw-r--r--core/root/etc/config/luci3
-rw-r--r--core/src/template.lua1
2 files changed, 3 insertions, 1 deletions
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,
}