From: Jo-Philipp Wich Date: Mon, 18 Jul 2011 14:53:10 +0000 (+0000) Subject: luci-0.10: merge r7299 X-Git-Tag: 0.10.0~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=18f89e92914e9ffa8e1691fb8ed1a685b5194617;p=oweals%2Fluci.git luci-0.10: merge r7299 --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 28c460858..4cbbe58ce 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -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