diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-04-09 17:33:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 17:33:21 +0300 |
commit | edd1fab34eaa98be624bbba17f60a8ae63744a98 (patch) | |
tree | c4b6211b37db19292c4e4bbbcc5543bcb73f4fcf /applications/luci-app-mwan3 | |
parent | 28d10632a19dd50a3d0b7f7eb670d38fa1fa419c (diff) | |
parent | f7f5395f1c6c1cb3913ca12b1efd9bbdf6201f15 (diff) |
Merge pull request #1741 from dibdot/mwan-fix
luci-app-mwan3: bugfix
Diffstat (limited to 'applications/luci-app-mwan3')
-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 3a896d3bcf..a439502671 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 |