cgi-bin/tek/class/loona.lua
changeset 234 b798ec008fe2
parent 225 67a7baf150c1
child 239 08efae95f502
     1.1 --- a/cgi-bin/tek/class/loona.lua	Sat Dec 15 17:34:15 2007 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Thu Dec 20 13:23:16 2007 +0100
     1.3 @@ -1773,7 +1773,8 @@
     1.4  function Loona:run(fname)
     1.5  	self:indexdynamic()
     1.6  	fname = fname or self.requesthandler
     1.7 -	local parsed, msg = self:loadhtml(open(fname), "loona:out", fname)
     1.8 +	local f = assert(open(fname), self:dbmsg("Handler not found", fname))
     1.9 +	local parsed, msg = self:loadhtml(f, "loona:out", fname)
    1.10  	assert(parsed, self:dbmsg("HTML/Lua parsing failed", msg))
    1.11  	self:runboxed(parsed)
    1.12  	return self