From f28422324d9f8aa6ac0af58dca431fa466e8b183 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 31 Aug 2008 10:48:56 +0000 Subject: [PATCH] libs/web: Fix dispatching index scope --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 9603f5f56..3805f5c9d 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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 -- 2.25.1