summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/luasrc/model/cbi
diff options
context:
space:
mode:
authorDarius <jok.darius@gmail.com>2018-11-09 12:38:33 +0200
committerJo-Philipp Wich <jo@mein.io>2018-11-15 08:41:59 +0100
commit7bffa401ff2e956ff768edb05c15f7a3d2873160 (patch)
treef20f89f35d98562dc499da4f69a2a916d9341586 /modules/luci-mod-network/luasrc/model/cbi
parent30e9f671a0ce041b9223c35c7f82208782f0e859 (diff)
luci-mod-network: function name mismatch fixed
Signed-off-by: Darius <jok.darius@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/luasrc/model/cbi')
-rw-r--r--modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua b/modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua
index 799386d29c..0c0ca5263d 100644
--- a/modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua
+++ b/modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua
@@ -103,7 +103,7 @@ table.sort(netlist,
s = m:section(TypedSection, "interface", translate("Interface Overview"))
-function s.sections(self)
+function s.cfgsections(self)
local _, net, sl = nil, nil, { }
for _, net in ipairs(netlist) do
@@ -121,10 +121,6 @@ end
o = s:option(Value, "__disable__")
-function o.cfgvalue(self, sid)
- return (m:get(sid, "auto") == "0") and "1" or "0"
-end
-
function o.write(self, sid, value)
if value ~= "1" then
m:set(sid, "auto", "")