libs/web: fix index cache rebuild triggering (#275)
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jul 2011 14:50:39 +0000 (14:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jul 2011 14:50:39 +0000 (14:50 +0000)
libs/web/luasrc/dispatcher.lua

index 28c460858d65be9d54a90f084bf53bac75656b99..4cbbe58ce0e2a770fe6b16decd9664af26184b2f 100644 (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