From 5f40074c0e2a6193cdd89893309787b2d31a24e4 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 26 May 2008 09:45:12 +0000 Subject: * Updated dispatcher to use fastindex if available * Updated webuci SGI * Updated dispatcher --- applications/sgi-webuci/src/sgi/webuci.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'applications/sgi-webuci/src/sgi') diff --git a/applications/sgi-webuci/src/sgi/webuci.lua b/applications/sgi-webuci/src/sgi/webuci.lua index 39eab3c4a2..498bca9214 100644 --- a/applications/sgi-webuci/src/sgi/webuci.lua +++ b/applications/sgi-webuci/src/sgi/webuci.lua @@ -25,12 +25,13 @@ limitations under the License. ]]-- module("luci.sgi.webuci", package.seeall) --- Environment Table -luci.http.env = webuci.env - - local status_set = false +-- Initialize the environment +function initenv(env) + luci.http.env = env +end + -- Returns the main dispatcher URL function luci.http.dispatcher() return luci.http.env.SCRIPT_NAME or "" @@ -94,6 +95,6 @@ end -- Sets HTTP-Status-Header function luci.http.status(code, message) - print(webuci.env.SERVER_PROTOCOL .. " " .. tostring(code) .. " " .. message) + print(luci.http.env.SERVER_PROTOCOL .. " " .. tostring(code) .. " " .. message) status_set = true end -- cgit v1.2.3