projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b5bbb
)
Added support for per dispatching node theme control
author
Steven Barth
<steven@midlink.org>
Sun, 19 Oct 2008 20:49:10 +0000
(20:49 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 19 Oct 2008 20:49:10 +0000
(20:49 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 5a9a0c6f528edef89e44a46965aea4d99cec95d6..a54685fefa121cb3d68bf77be2b24ae6724d9c59 100644
(file)
--- 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