From: Jo-Philipp Wich Date: Thu, 10 Sep 2009 08:11:25 +0000 (+0000) Subject: libs/web: add missing local variable declaration X-Git-Tag: 0.10.0~1146 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=cf1e1534bc5284ea753a61233c5e6ee8a11ac13d libs/web: add missing local variable declaration --- 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