summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-05 19:17:48 +0000
committerSteven Barth <steven@midlink.org>2008-09-05 19:17:48 +0000
commitac05bea1be004a4270a43825dae8430c579be72b (patch)
treecbee2391b76e71020a405281346b5a3b0718f960
parent13579a4e211de5220c653fb97c211d6ef43dfa27 (diff)
Small dispatcher improvement
-rw-r--r--libs/web/luasrc/dispatcher.lua7
1 files changed, 1 insertions, 6 deletions
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