Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-statistics / luasrc / view / admin_statistics / outputplugins.htm
index d230109cc06ae45c5ec6ec670d790e22f57e0c11..e79e2f49f5dba2dad607283e3af4f41395a041aa 100644 (file)
@@ -23,7 +23,7 @@ and to transmit the data over the network to other collectd instances.%></p>
 <p><%:stat_outputplugins_installed Installed output plugins:%>
        <ul>
                <% for plugin, desc in pairs(plugins) do %>
-                       <% if luci.fs.isfile("/usr/lib/collectd/" .. plugin .. ".so") then %>
+                       <% if luci.fs.access("/usr/lib/collectd/" .. plugin .. ".so") then %>
                                <li><a href="<%=controller%>/admin/statistics/collectd/output/<%=plugin%>"><%=desc%></a></li>
                        <% end %>
                <% end %>