luci-0.10: merge r7299

This commit is contained in:
Jo-Philipp Wich 2011-07-18 14:53:10 +00:00
parent e049665fe2
commit 18f89e9291

View file

@ -437,7 +437,7 @@ function createindex_plain(path, suffixes)
if cachedate then
local realdate = 0
for _, obj in ipairs(controllers) do
local omtime = fs.stat(path .. "/" .. obj, "mtime")
local omtime = fs.stat(obj, "mtime")
realdate = (omtime and omtime > realdate) and omtime or realdate
end