luci-0.10: merge r7299
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jul 2011 14:53:10 +0000 (14:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jul 2011 14:53:10 +0000 (14:53 +0000)
libs/web/luasrc/dispatcher.lua

index 28c4608..4cbbe58 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