From: Steven Barth Date: Fri, 5 Sep 2008 19:17:48 +0000 (+0000) Subject: Small dispatcher improvement X-Git-Tag: 0.8.0~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac05bea1be004a4270a43825dae8430c579be72b;p=oweals%2Fluci.git Small dispatcher improvement --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 599d652f4..fd2be1eb4 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -325,12 +325,7 @@ function createtree() -- Load default translation require "luci.i18n".loadc("default") - local scope = setmetatable({}, {__index = _G}) - for k,v in pairs(luci.dispatcher) do - if type(v) == "function" then - scope[k] = v - end - end + local scope = setmetatable({}, {__index = luci.dispatcher}) for k, v in pairs(index) do scope._NAME = k