From: Jo-Philipp Wich Date: Mon, 11 Jul 2011 13:12:02 +0000 (+0000) Subject: luci-0.10: merge r7268 X-Git-Tag: 0.10.0~103 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1958c0b84934d9d8f8083bf249864b266ae0b21;p=oweals%2Fluci.git luci-0.10: merge r7268 --- diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua index baced4a88..79604c263 100644 --- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua +++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua @@ -82,6 +82,10 @@ function s.create(self) end end +function s.remove(self, section) + return fw:del_zone(section) +end + info = s:option(DummyValue, "_info", translate("Zone ⇒ Forwardings")) info.template = "cbi/firewall_zoneforwards" function info.cfgvalue(self, section)