projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13579a4
)
Small dispatcher improvement
author
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 19:17:48 +0000
(19:17 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 19:17:48 +0000
(19:17 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 599d652f4c20646917a855bfd991828f32345d3d..fd2be1eb4eb627f6057071c81ed8a2f265c5025f 100644
(file)
--- 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