summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-10-10 23:03:53 +0200
committerGitHub <noreply@github.com>2019-10-10 23:03:53 +0200
commitb489aae226e6baaffb7cdf7073ea1870bec110e9 (patch)
tree4ddafe40623c72bf5ac992334d620d30ce1cd9ce /applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua
parentdd6818e188b2d07337479c079749f2f538926d79 (diff)
parent70d87f6e9e70d1ce38096ef29e9dafde82e275e4 (diff)
Merge pull request #3169 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: bugfix: fix invalid <br> entries
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.lua5
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