From cf1e1534bc5284ea753a61233c5e6ee8a11ac13d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 10 Sep 2009 08:11:25 +0000 Subject: [PATCH] libs/web: add missing local variable declaration --- libs/web/luasrc/template.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0