summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/controller
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-02 21:33:10 +0000
committerSteven Barth <steven@midlink.org>2009-01-02 21:33:10 +0000
commit70ded13045e6b882859eeb0acb928eb8cacefd28 (patch)
treef1aaeaa1da2349686e7d297bd061455df4d21f81 /applications/luci-statistics/luasrc/controller
parent748bbc8acb42065886d23dc7d95afa218dc42445 (diff)
Use luci.fs.access instead of luci.fs.isfile where applicable
Diffstat (limited to 'applications/luci-statistics/luasrc/controller')
-rw-r--r--applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index 0aa66362b..940d2265c 100644
--- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@ -32,7 +32,7 @@ function index()
-- override entry(): check for existance <plugin>.so where <plugin> is derived from the called path
function _entry( path, ... )
local file = path[5] or path[4]
- if luci.fs.isfile( "/usr/lib/collectd/" .. file .. ".so" ) then
+ if luci.fs.access( "/usr/lib/collectd/" .. file .. ".so" ) then
entry( path, ... )
end
end