projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-freifunk-widgets: switch to nixio.fs
[project/luci.git]
/
applications
/
luci-app-freifunk-widgets
/
luasrc
/
view
/
freifunk
/
widgets
/
rssfeed
/
main.htm
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
08fc550
..
ff81ba8
100644
(file)
--- 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 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")
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
<% 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
local now = os.time()
expire = mtime + cachetime