diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-09-10 08:11:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-09-10 08:11:25 +0000 |
commit | cf1e1534bc5284ea753a61233c5e6ee8a11ac13d (patch) | |
tree | cc30abfc90743effe2e28c00a04a93ef4b74d333 /libs | |
parent | aa93e160923ae0873fac5ea061935cf4338dc047 (diff) |
libs/web: add missing local variable declaration
Diffstat (limited to 'libs')
-rw-r--r-- | libs/web/luasrc/template.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index 90ac69fba..2fec888c3 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 |