From: Darius Date: Fri, 9 Nov 2018 10:38:33 +0000 (+0200) Subject: luci-mod-network: function name mismatch fixed X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7bffa401ff2e956ff768edb05c15f7a3d2873160;p=oweals%2Fluci.git luci-mod-network: function name mismatch fixed Signed-off-by: Darius --- 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 799386d29..0c0ca5263 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", "")