diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-07-22 22:37:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-22 22:37:01 +0200 |
commit | 1961ce6df339485002385772d5d853c88c4f405f (patch) | |
tree | a37b4e8db95f977ce00de0ec04a72d0ef6f0acfa /applications/luci-app-adblock/luasrc/controller/adblock.lua | |
parent | 4105c78ff9d36b287c3cfd43180eff5ec3849b8f (diff) | |
parent | 8d7ebf057222078193b1b753084c35eabe605405 (diff) |
Merge pull request #1986 from dibdot/adblock
luci-app-adblock: fix translations
Diffstat (limited to 'applications/luci-app-adblock/luasrc/controller/adblock.lua')
-rw-r--r-- | applications/luci-app-adblock/luasrc/controller/adblock.lua | 8 |
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") |