From: Dirk Brenken Date: Fri, 16 Mar 2018 11:59:53 +0000 (+0100) Subject: luci-app-adblock: remaining fixes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F1688%2Fhead;p=project%2Fluci.git luci-app-adblock: remaining fixes * missed in the last (untested) commit - sorry. Signed-off-by: Dirk Brenken --- diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua index 8526a4b5eb..86ebdd0e1f 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua @@ -3,7 +3,7 @@ local fs = require("nixio.fs") local util = require("luci.util") -local uci = require("uci") +local uci = require("luci.model.uci").cursor() local adbinput = uci:get("adblock", "blacklist", "adb_src") or "/etc/adblock/adblock.blacklist" if not nixio.fs.access(adbinput) then diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua index df8b34f8e7..e5a05cf4cd 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua @@ -3,7 +3,7 @@ local fs = require("nixio.fs") local util = require("luci.util") -local uci = require("uci") +local uci = require("luci.model.uci").cursor() local adbinput = uci:get("adblock", "global", "adb_whitelist") or "/etc/adblock/adblock.whitelist" if not nixio.fs.access(adbinput) then