* ffluci.fs.isfile: fixed several typos
authorSteven Barth <steven@midlink.org>
Wed, 7 May 2008 20:47:22 +0000 (20:47 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 7 May 2008 20:47:22 +0000 (20:47 +0000)
core/contrib/ffluci
core/src/ffluci/fs.lua

index 183a6ad..2c0362e 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/haserl --shell=luac
 package.path  = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
 package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
+print("Content-Type: text/plain\n")
 require("ffluci.dispatcher").httpdispatch()
\ No newline at end of file
index ffa4cb8..0ca191b 100644 (file)
@@ -35,9 +35,9 @@ end
 
 -- Checks whether a file exists
 function isfile(filename)
-       local fp = io.open(path, "r")
-       if file then file:close() end
-       return file ~= nil
+       local fp = io.open(filename, "r")
+       if fp then fp:close() end
+       return fp ~= nil
 end    
 
 -- Returns the content of file