From 8d7ebf057222078193b1b753084c35eabe605405 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 22 Jul 2018 22:28:26 +0200 Subject: luci-app-adblock: fix translations * fix runtime & button translations Signed-off-by: Dirk Brenken --- applications/luci-app-adblock/luasrc/controller/adblock.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-adblock/luasrc/controller/adblock.lua') 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") -- cgit v1.2.3