luci-app-adblock: remaining fixes 1688/head
authorDirk Brenken <dev@brenken.org>
Fri, 16 Mar 2018 11:59:53 +0000 (12:59 +0100)
committerDirk Brenken <dev@brenken.org>
Fri, 16 Mar 2018 11:59:53 +0000 (12:59 +0100)
* missed in the last (untested) commit - sorry.

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua
applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua

index 8526a4b5eb8393ac483d694638dec872035ccd59..86ebdd0e1fadc5d80d7dbb8aec2fb0af19d516b1 100644 (file)
@@ -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
index df8b34f8e7528b34abbcb28fe1c05415e33f4c3d..e5a05cf4cd13fe9b21e73f26eb610880ebb0c62e 100644 (file)
@@ -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