From: Steven Barth Date: Sun, 19 Oct 2008 20:49:10 +0000 (+0000) Subject: Added support for per dispatching node theme control X-Git-Tag: 0.9.0~1082 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=c951eeb00878768a0f03803c5eccad4e977d985e Added support for per dispatching node theme control --- 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