libs/web: add missing local variable declaration

This commit is contained in:
Jo-Philipp Wich 2009-09-10 08:11:25 +00:00
parent aa93e16092
commit cf1e1534bc

View file

@ -76,7 +76,9 @@ function Template.__init__(self, name)
if not self.template then if not self.template then
-- Compile template -- Compile template
local err
local sourcefile = viewdir .. "/" .. name .. ".htm" local sourcefile = viewdir .. "/" .. name .. ".htm"
self.template, _, err = tparser.parse(sourcefile) self.template, _, err = tparser.parse(sourcefile)
-- If we have no valid template throw error, otherwise cache the template -- If we have no valid template throw error, otherwise cache the template