From: Steven Barth Date: Sun, 31 Aug 2008 10:48:56 +0000 (+0000) Subject: libs/web: Fix dispatching index scope X-Git-Tag: 0.8.0~229 X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=f28422324d9f8aa6ac0af58dca431fa466e8b183 libs/web: Fix dispatching index scope --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 9603f5f56c..3805f5c9d3 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