projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
725c424
)
libs/web: change "module" variable to "modname" in dispatcher.lua, solves apidoc...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 12 Dec 2010 20:16:13 +0000
(20:16 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 12 Dec 2010 20:16:13 +0000
(20:16 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index
3d0db5a
..
28c4608
100644
(file)
--- 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
index = {}
for i,c in ipairs(controllers) do
- local mod
ul
e = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".")
+ local mod
nam
e = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".")
for _, suffix in ipairs(suffixes) do
for _, suffix in ipairs(suffixes) do
- mod
ule = modul
e:gsub(suffix.."$", "")
+ mod
name = modnam
e:gsub(suffix.."$", "")
end
end
- local mod = require(mod
ul
e)
+ local mod = require(mod
nam
e)
local idx = mod.index
if type(idx) == "function" then
local idx = mod.index
if type(idx) == "function" then
- index[mod
ul
e] = idx
+ index[mod
nam
e] = idx
end
end
end
end