summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-18 14:50:39 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-18 14:50:39 +0000
commit253eafb57752f8a33e2465e336625a83885e61f4 (patch)
treeb6fe61807ea2d43cdba5716f050ea231bf3bba61 /libs/web/luasrc/dispatcher.lua
parent518dc0fef9961bf135b1780062b346cd66192c85 (diff)
libs/web: fix index cache rebuild triggering (#275)
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
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