Added support for per dispatching node theme control
This commit is contained in:
parent
d4b5bbbd5a
commit
c951eeb008
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ function dispatch(request)
|
||||||
-- Init template engine
|
-- Init template engine
|
||||||
if (c and c.index) or not track.notemplate then
|
if (c and c.index) or not track.notemplate then
|
||||||
local tpl = require("luci.template")
|
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
|
if not pcall(tpl.Template, "themes/%s/header" % fs.basename(media)) then
|
||||||
media = nil
|
media = nil
|
||||||
for name, theme in pairs(luci.config.themes) do
|
for name, theme in pairs(luci.config.themes) do
|
||||||
|
|
Loading…
Reference in a new issue