summaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-05 19:56:14 +0000
committerSteven Barth <steven@midlink.org>2008-05-05 19:56:14 +0000
commitdecdaf673607169fbe2979d18c59498f2ca47b39 (patch)
tree1916f48b8fa2a3b331034d9b8a58e8f31748383a /core
parentcc729464f9ba3cbeb52b3fea313780ad0ccc39af (diff)
* ffluci.sgi.haserl: Several fixes
* ffluci.menu: Enabled caching
Diffstat (limited to 'core')
-rw-r--r--core/src/ffluci/menu.lua4
-rw-r--r--core/src/ffluci/sgi/haserl.lua4
2 files changed, 5 insertions, 3 deletions
diff --git a/core/src/ffluci/menu.lua b/core/src/ffluci/menu.lua
index c153ef533..ed05f881d 100644
--- a/core/src/ffluci/menu.lua
+++ b/core/src/ffluci/menu.lua
@@ -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
diff --git a/core/src/ffluci/sgi/haserl.lua b/core/src/ffluci/sgi/haserl.lua
index 01c2083c2..75b9bf108 100644
--- a/core/src/ffluci/sgi/haserl.lua
+++ b/core/src/ffluci/sgi/haserl.lua
@@ -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