diff options
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua')
-rw-r--r-- | applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua b/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua index 98f69ac968..acfea5bf38 100644 --- a/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua +++ b/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua @@ -1,7 +1,6 @@ module("luci.controller.simple-adblock", package.seeall) function index() - if not nixio.fs.access("/etc/config/simple-adblock") then - return + if nixio.fs.access("/etc/config/simple-adblock") then + entry({"admin", "services", "simple-adblock"}, cbi("simple-adblock"), _("Simple AdBlock")) end - entry({"admin", "services", "simple-adblock"}, cbi("simple-adblock"), _("Simple AdBlock")) end |