Added support for per dispatching node theme control
authorSteven Barth <steven@midlink.org>
Sun, 19 Oct 2008 20:49:10 +0000 (20:49 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 19 Oct 2008 20:49:10 +0000 (20:49 +0000)
libs/web/luasrc/dispatcher.lua

index 5a9a0c6f528edef89e44a46965aea4d99cec95d6..a54685fefa121cb3d68bf77be2b24ae6724d9c59 100644 (file)
@@ -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