summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-03-16 13:01:36 +0100
committerGitHub <noreply@github.com>2018-03-16 13:01:36 +0100
commitb2fbfedc7e421968c65b0002182fdd0064a3edfa (patch)
treeb817bd55212f7c0c6ec77d6456cbc0c02ddb57bd /applications
parent7656f51c82ea490589b40ba19ff5eced672251b5 (diff)
parentab30c8365f08dd521661a112b2d2d4903a6c3755 (diff)
Merge pull request #1688 from dibdot/adblock
luci-app-adblock: remaining fixes
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua2
-rw-r--r--applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua2
2 files changed, 2 insertions, 2 deletions
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 8526a4b5e..86ebdd0e1 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 df8b34f8e..e5a05cf4c 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