summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-10 08:11:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-10 08:11:25 +0000
commitcf1e1534bc5284ea753a61233c5e6ee8a11ac13d (patch)
treecc30abfc90743effe2e28c00a04a93ef4b74d333 /libs/web/luasrc
parentaa93e160923ae0873fac5ea061935cf4338dc047 (diff)
libs/web: add missing local variable declaration
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/template.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua
index 90ac69fbac..2fec888c30 100644
--- 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