summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/controller
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-07-22 22:28:26 +0200
committerDirk Brenken <dev@brenken.org>2018-07-22 22:28:26 +0200
commit8d7ebf057222078193b1b753084c35eabe605405 (patch)
tree5da4e0d15c031a17afdf8280a333c1186f79646e /applications/luci-app-adblock/luasrc/controller
parent5db2b7649704b229fb618b627225ccc97519280e (diff)
luci-app-adblock: fix translations
* fix runtime & button translations Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/controller')
-rw-r--r--applications/luci-app-adblock/luasrc/controller/adblock.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-adblock/luasrc/controller/adblock.lua b/applications/luci-app-adblock/luasrc/controller/adblock.lua
index 664822140f..fad8834870 100644
--- a/applications/luci-app-adblock/luasrc/controller/adblock.lua
+++ b/applications/luci-app-adblock/luasrc/controller/adblock.lua
@@ -30,12 +30,12 @@ function index()
entry({"admin", "services", "adblock", "action"}, call("adb_action"), nil).leaf = true
end
-function adb_action(value)
- if value == "Suspend" then
+function adb_action(name)
+ if name == "do_suspend" then
luci.sys.call("/etc/init.d/adblock suspend >/dev/null 2>&1")
- elseif value == "Resume" then
+ elseif name == "do_resume" then
luci.sys.call("/etc/init.d/adblock resume >/dev/null 2>&1")
- elseif value == "Refresh" then
+ elseif name == "do_refresh" then
luci.sys.call("/etc/init.d/adblock reload >/dev/null 2>&1")
end
luci.http.prepare_content("text/plain")