* ffluci.sgi.haserl: Several fixes
authorSteven Barth <steven@midlink.org>
Mon, 5 May 2008 19:56:14 +0000 (19:56 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 5 May 2008 19:56:14 +0000 (19:56 +0000)
* ffluci.menu: Enabled caching

core/src/ffluci/menu.lua
core/src/ffluci/sgi/haserl.lua

index c153ef5..ed05f88 100644 (file)
@@ -118,6 +118,8 @@ end
 
 -- Returns the menu information
 function get()
-       collect()
+       if not menu then
+               collect()
+       end
        return menu
 end
\ No newline at end of file
index 01c2083..75b9bf1 100644 (file)
@@ -52,7 +52,7 @@ end
 
 -- Gets a table of values with a certain prefix
 function ffluci.http.formvaluetable(prefix)
-       return formvalue(prefix, {})
+       return ffluci.http.formvalue(prefix, {})
 end
 
 
@@ -73,7 +73,7 @@ function ffluci.http.redirect(url, qs)
                url = url .. "?" .. qs
        end
        
-       set_status(302, "Found")
+       ffluci.http.set_status(302, "Found")
        print("Location: " .. url .. "\n")
 end