Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-ddns / luasrc / controller / ddns.lua
index f989136..6adbbb0 100644 (file)
@@ -17,7 +17,7 @@ module("luci.controller.ddns", package.seeall)
 function index()
        require("luci.i18n")
        luci.i18n.loadc("ddns")
 function index()
        require("luci.i18n")
        luci.i18n.loadc("ddns")
-       if not luci.fs.isfile("/etc/config/ddns") then
+       if not luci.fs.access("/etc/config/ddns") then
                return
        end
        
                return
        end
        
@@ -26,7 +26,7 @@ function index()
        page.dependent = true
        
        
        page.dependent = true
        
        
-       local page = entry({"mini", "network", "ddns"}, cbi("ddns/ddnsmini"), luci.i18n.translate("ddns"), 60)
+       local page = entry({"mini", "network", "ddns"}, cbi("ddns/ddnsmini", {autoapply=true}), luci.i18n.translate("ddns"), 60)
        page.i18n = "ddns"
        page.dependent = true
 end
\ No newline at end of file
        page.i18n = "ddns"
        page.dependent = true
 end
\ No newline at end of file