diff options
author | Dirk Brenken <dev@brenken.org> | 2018-04-09 15:50:21 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-04-09 15:50:21 +0200 |
commit | f7f5395f1c6c1cb3913ca12b1efd9bbdf6201f15 (patch) | |
tree | dc63d04548697d1c625020fbb5d4c98adbd3ad54 | |
parent | 1104b837cdf87e42512a32c48c9bedbd9c1d6d57 (diff) |
luci-app-mwan3: bugfix
* make use of luci.model.uci to fix #1740
Signed-off-by: Dirk Brenken <dev@brenken.org>
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua index 3a896d3bc..a43950267 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -171,7 +171,7 @@ metric = mwan_interface:option(DummyValue, "metric", translate("Metric"), translate("This displays the metric assigned to this interface in /etc/config/network")) metric.rawhtml = true function metric.cfgvalue(self, s) - local uci = uci.cursor(nil, "/var/state") + local uci = require "luci.model.uci".cursor(nil, "/var/state") local metric = uci:get("network", arg[1], "metric") if metric then return metric |