summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets')
-rw-r--r--applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/html/main.htm2
-rw-r--r--applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/rssfeed/main.htm4
2 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/html/main.htm b/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/html/main.htm
index 87ad5b6292..46e063b24f 100644
--- a/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/html/main.htm
+++ b/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets/html/main.htm
@@ -13,7 +13,7 @@ You may obtain a copy of the License at
]]--
--local utl = require "luci.util"
-local fs = require "luci.fs"
+local fs = require "nixio.fs"
local title = data.title
local name = data['.name']
local file = "/usr/share/customtext/" .. name .. ".html"
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 08fc550ecd..ff81ba8a67 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