libs/web: Fix dispatching index scope
authorSteven Barth <steven@midlink.org>
Sun, 31 Aug 2008 10:48:56 +0000 (10:48 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 31 Aug 2008 10:48:56 +0000 (10:48 +0000)
libs/web/luasrc/dispatcher.lua

index 9603f5f56ce5aff2be1ad5defa228a21cb6737c3..3805f5c9d3323a9988cf834c7b86b11bee5ecd5e 100644 (file)
@@ -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