summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 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,
}