From 0b34ab07d4834e7b8329f50a3fe64df3ae232053 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 29 Nov 2008 21:58:39 +0000 Subject: Scope compatibility fixes --- libs/cbi/luasrc/cbi.lua | 6 +++--- libs/web/luasrc/dispatcher.lua | 2 +- libs/web/luasrc/http.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libs') diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 0808fb1b7..d19e0eb73 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -27,15 +27,15 @@ limitations under the License. module("luci.cbi", package.seeall) require("luci.template") -require("luci.util") +local util = require("luci.util") require("luci.http") require("luci.uvl") require("luci.fs") --local event = require "luci.sys.event" local uci = require("luci.model.uci") -local class = luci.util.class -local instanceof = luci.util.instanceof +local class = util.class +local instanceof = util.instanceof FORM_NODATA = 0 FORM_PROCEED = 0 diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index cae5492f6..d3daa46a6 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -32,7 +32,7 @@ local util = require "luci.util" local http = require "luci.http" module("luci.dispatcher", package.seeall) -context = luci.util.threadlocal() +context = util.threadlocal() authenticator = {} diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index c5a85ea4d..bac997952 100644 --- a/libs/web/luasrc/http.lua +++ b/libs/web/luasrc/http.lua @@ -25,7 +25,7 @@ limitations under the License. ]]-- local ltn12 = require "luci.ltn12" -local proto = require "luci.http.protocol" +local protocol = require "luci.http.protocol" local util = require "luci.util" local string = require "string" local coroutine = require "coroutine" -- cgit v1.2.3