diff options
author | Steven Barth <steven@midlink.org> | 2008-07-17 16:02:29 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-17 16:02:29 +0000 |
commit | 52d49762ed28033d82e5ab1e0ccf65ad74a4b593 (patch) | |
tree | 61ba5cc4a6a1cebfff038e815bea7f001fab305a /applications/luci-fw/luasrc | |
parent | 8d1aff78b17d6f7437d776bdf53a6aa2112f31db (diff) |
applications/luci-qos: Smaller enhancements, support for luci-mini
applications/luci-fw: Fixed support for luci-mini
libs/web: Removed luci.dispatcher.registered
Diffstat (limited to 'applications/luci-fw/luasrc')
-rw-r--r-- | applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua b/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua index b8c104601..b8967330c 100644 --- a/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua +++ b/applications/luci-fw/luasrc/controller/luci_fw/luci_fw.lua @@ -3,14 +3,17 @@ module("luci.controller.luci_fw.luci_fw", package.seeall) function index() require("luci.i18n").loadc("luci-fw") local i18n = luci.i18n.translate + + local nodes = {} - if registered("admin") then - entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw" - entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73).i18n = "luci-fw" - entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76).i18n = "luci-fw" - end + table.insert(nodes, entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70)) + table.insert(nodes, entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73)) + table.insert(nodes, entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76)) + + table.insert(nodes, entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw"), i18n("fw_portfw", "Portweiterleitung"), 70)) - if registered("mini") then - entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw"), i18n("fw_portfw", "Portweiterleitung"), 70).i18n = "luci-fw" - end + for i,n in ipairs(nodes) do + n.i18n = "luci-fw" + n.dependent = true + end end
\ No newline at end of file |