X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-freifunk-widgets%2Fluasrc%2Fview%2Ffreifunk%2Fwidgets%2Frssfeed%2Fmain.htm;h=ff81ba8a67169d90a3fbcbcb1e3785a071fbeb6b;hp=08fc550ecda65b2d33c1cd82467d18ea31f3f879;hb=7298099b0263b03ab69871da7b7e32c16a54f60a;hpb=2af6fac809e73e57097572fa6a759156fa0d24eb diff --git a/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/rssfeed/main.htm b/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/rssfeed/main.htm index 08fc550ec..ff81ba8a6 100644 --- a/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/rssfeed/main.htm +++ b/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/rssfeed/main.htm @@ -14,7 +14,7 @@ You may obtain a copy of the License at local sys = require "luci.sys" local utl = require "luci.util" -local fs = require "luci.fs" +local fs = require "nixio.fs" local i18n = require "luci.i18n" local url = data.url local title = data.title or i18n.translate("RSS") @@ -37,7 +37,7 @@ cachefile = "/tmp/" .. name .. ".cache" <% if not url then %> <%:No url found in config%> <% else - local mtime = luci.fs.mtime(cachefile) or 0 + local mtime = fs.stat(cachefile, "mtime") or 0 local now = os.time() expire = mtime + cachetime