Changeset 6643

Show
Ignore:
Timestamp:
12/12/10 21:16:13 (2 years ago)
Author:
jow
Message:

libs/web: change "module" variable to "modname" in dispatcher.lua, solves apidoc artefacts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/web/luasrc/dispatcher.lua

    r6569 r6643  
    458458 
    459459    for i,c in ipairs(controllers) do 
    460         local module = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".") 
     460        local modname = "luci.controller." .. c:sub(#path+1, #c):gsub("/", ".") 
    461461        for _, suffix in ipairs(suffixes) do 
    462             module = module:gsub(suffix.."$", "") 
    463         end 
    464  
    465         local mod = require(module) 
     462            modname = modname:gsub(suffix.."$", "") 
     463        end 
     464 
     465        local mod = require(modname) 
    466466        local idx = mod.index 
    467467 
    468468        if type(idx) == "function" then 
    469             index[module] = idx 
     469            index[modname] = idx 
    470470        end 
    471471    end