From c951eeb00878768a0f03803c5eccad4e977d985e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 19 Oct 2008 20:49:10 +0000 Subject: [PATCH] Added support for per dispatching node theme control --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0