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 9603f5f..3805f5c 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