git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
30e9f67
)
luci-mod-network: function name mismatch fixed
author
Darius
<redacted>
Fri, 9 Nov 2018 10:38:33 +0000
(12:38 +0200)
committer
Jo-Philipp Wich
<redacted>
Thu, 15 Nov 2018 07:41:59 +0000
(08:41 +0100)
Signed-off-by: Darius <redacted>
modules/luci-mod-network/luasrc/model/cbi/admin_network/network.lua
patch
|
blob
|
history
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 799386d29c6752826af87bd5bfd54d422b436b4b..0c0ca5263d9e276165e33afbb2149f006c447b2e 100644
(file)
--- 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.
cfg
sections(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", "")
git clone https://git.99rst.org/PROJECT