diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-07 15:16:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-07 15:16:14 +0000 |
commit | 5676686863a56aa8518ca9328fbed9036ce7c823 (patch) | |
tree | b96836b0c4e9ff87cf3e6da262382f0ead87623e /libs/web/luasrc/dispatcher.lua | |
parent | 6ff82a0142472a1eabca9db2fcbebfb73ae5c8b2 (diff) |
libs/web: restore protected call to Template(), was accidentally removed in r4889
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index a375eecc84..6d44339751 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -219,8 +219,7 @@ function dispatch(request) if (c and c.index) or not track.notemplate then local tpl = require("luci.template") local media = track.mediaurlbase or luci.config.main.mediaurlbase - if not tpl.Template("themes/%s/header" % fs.basename(media)) then - --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 for name, theme in pairs(luci.config.themes) do if name:sub(1,1) ~= "." and pcall(tpl.Template, |