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:
aa93e16
)
libs/web: add missing local variable declaration
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 10 Sep 2009 08:11:25 +0000
(08:11 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 10 Sep 2009 08:11:25 +0000
(08:11 +0000)
libs/web/luasrc/template.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/template.lua
b/libs/web/luasrc/template.lua
index 90ac69fbac933d22cf354704f5e1df1a6588f6e7..2fec888c307d42a54acee64f5c95786b21733c02 100644
(file)
--- a/
libs/web/luasrc/template.lua
+++ b/
libs/web/luasrc/template.lua
@@
-76,7
+76,9
@@
function Template.__init__(self, name)
if not self.template then
-- Compile template
+ local err
local sourcefile = viewdir .. "/" .. name .. ".htm"
+
self.template, _, err = tparser.parse(sourcefile)
-- If we have no valid template throw error, otherwise cache the template