libs/web: add missing local variable declaration
This commit is contained in:
parent
aa93e16092
commit
cf1e1534bc
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue