diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-12 20:16:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-12 20:16:13 +0000 |
commit | 39578a6b72782d8d39b0450346bf0fa1bbb909a1 (patch) | |
tree | 6767ba0d186b5d8bc88178fa7ed28b63aadb124c /libs/web | |
parent | 725c424a759ca55017a50947fa871b44c7a8b8ef (diff) |
libs/web: change "module" variable to "modname" in dispatcher.lua, solves apidoc artefacts
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 3d0db5a21..28c460858 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -457,16 +457,16 @@ function createindex_plain(path, suffixes) index = {} for i,c in ipairs(controllers) do - local module = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".") + local modname = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".") for _, suffix in ipairs(suffixes) do - module = module:gsub(suffix.."$", "") + modname = modname:gsub(suffix.."$", "") end - local mod = require(module) + local mod = require(modname) local idx = mod.index if type(idx) == "function" then - index[module] = idx + index[modname] = idx end end |