summaryrefslogtreecommitdiffhomepage
path: root/libs/web
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-19 20:49:10 +0000
committerSteven Barth <steven@midlink.org>2008-10-19 20:49:10 +0000
commitc951eeb00878768a0f03803c5eccad4e977d985e (patch)
tree14ccecb4f93b6a7e12a3dd9e34bff1699a7c3dce /libs/web
parentd4b5bbbd5ab90ecf0a45b95740d4edc2cff33d0d (diff)
Added support for per dispatching node theme control
Diffstat (limited to 'libs/web')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 5a9a0c6f5..a54685fef 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -163,7 +163,7 @@ function dispatch(request)
-- Init template engine
if (c and c.index) or not track.notemplate then
local tpl = require("luci.template")
- local media = luci.config.main.mediaurlbase
+ local media = track.mediaurlbase or luci.config.main.mediaurlbase
if not pcall(tpl.Template, "themes/%s/header" % fs.basename(media)) then
media = nil
for name, theme in pairs(luci.config.themes) do