libs/web: Fix dispatching index scope
This commit is contained in:
parent
041321c5f7
commit
f28422324d
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ function createtree()
|
|||
require "luci.i18n".loadc("default")
|
||||
|
||||
local scope = setmetatable({}, {__index = _G})
|
||||
for k,v in pairs(_M) do
|
||||
for k,v in pairs(luci.dispatcher) do
|
||||
if type(v) == "function" then
|
||||
scope[k] = v
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue