modules/admin-full: use firstchild() in index controller
This commit is contained in:
parent
7e882e8bd6
commit
76548e7dad
1 changed files with 2 additions and 2 deletions
|
@ -17,12 +17,12 @@ module("luci.controller.admin.index", package.seeall)
|
|||
function index()
|
||||
local root = node()
|
||||
if not root.target then
|
||||
root.target = alias("admin")
|
||||
root.target = firstchild()
|
||||
root.index = true
|
||||
end
|
||||
|
||||
local page = node("admin")
|
||||
page.target = alias("admin", "status")
|
||||
page.target = firstchild()
|
||||
page.title = _("Administration")
|
||||
page.order = 10
|
||||
page.sysauth = "root"
|
||||
|
|
Loading…
Reference in a new issue