summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-27 20:39:48 +0000
committerSteven Barth <steven@midlink.org>2008-05-27 20:39:48 +0000
commitb1e131a3db1b6ec2ceecb5df4a224f3de2735e6d (patch)
tree593175651871c9fcfaa4ee7c9fceeb8990b8147c /modules/admin-core
parent3f09d369d679d3e4413849cf67f757c647a66965 (diff)
* Optimized dispatching model
Diffstat (limited to 'modules/admin-core')
-rw-r--r--modules/admin-core/luasrc/controller/admin/status.lua2
-rw-r--r--modules/admin-core/luasrc/controller/admin/system.lua12
-rw-r--r--modules/admin-core/luasrc/controller/admin/uci.lua4
3 files changed, 9 insertions, 9 deletions
diff --git a/modules/admin-core/luasrc/controller/admin/status.lua b/modules/admin-core/luasrc/controller/admin/status.lua
index 34c210ca6..79f728b99 100644
--- a/modules/admin-core/luasrc/controller/admin/status.lua
+++ b/modules/admin-core/luasrc/controller/admin/status.lua
@@ -2,7 +2,7 @@ module("luci.controller.admin.status", package.seeall)
function index()
entry({"admin", "status"}, template("admin_status/index"), "Status", 20)
- entry({"admin", "status", "syslog"}, action_syslog, "Systemprotokoll")
+ entry({"admin", "status", "syslog"}, call("action_syslog"), "Systemprotokoll")
end
function action_syslog()
diff --git a/modules/admin-core/luasrc/controller/admin/system.lua b/modules/admin-core/luasrc/controller/admin/system.lua
index e44e787fd..304f1eee8 100644
--- a/modules/admin-core/luasrc/controller/admin/system.lua
+++ b/modules/admin-core/luasrc/controller/admin/system.lua
@@ -14,21 +14,21 @@ function index()
page.order = 30
local page = node("admin", "system", "packages")
- page.target = action_packages
+ page.target = call("action_packages")
page.title = "Paketverwaltung"
page.order = 10
local page = node("admin", "system", "packages", "ipkg")
- page.target = action_ipkg
+ page.target = call("action_ipkg")
page.title = "IPKG-Konfiguration"
local page = node("admin", "system", "passwd")
- page.target = action_passwd
+ page.target = call("action_passwd")
page.title = "Passwort ändern"
page.order = 20
local page = node("admin", "system", "sshkeys")
- page.target = action_sshkeys
+ page.target = call("action_sshkeys")
page.title = "SSH-Schlüssel"
page.order = 30
@@ -43,12 +43,12 @@ function index()
page.order = 50
local page = node("admin", "system", "upgrade")
- page.target = action_upgrade
+ page.target = call("action_upgrade")
page.title = "Firmwareupgrade"
page.order = 60
local page = node("admin", "system", "reboot")
- page.target = action_reboot
+ page.target = call("action_reboot")
page.title = "Neu starten"
page.order = 70
end
diff --git a/modules/admin-core/luasrc/controller/admin/uci.lua b/modules/admin-core/luasrc/controller/admin/uci.lua
index ca1440bde..9c0e1beb5 100644
--- a/modules/admin-core/luasrc/controller/admin/uci.lua
+++ b/modules/admin-core/luasrc/controller/admin/uci.lua
@@ -4,8 +4,8 @@ require("luci.sys")
function index()
node("admin", "uci", "changes").target = template("admin_uci/changes")
- node("admin", "uci", "revert").target = action_revert
- node("admin", "uci", "apply").target = action_apply
+ node("admin", "uci", "revert").target = call("action_revert")
+ node("admin", "uci", "apply").target = call("action_apply")
end
-- This function has a higher priority than the admin_uci/apply template