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()
|
function index()
|
||||||
local root = node()
|
local root = node()
|
||||||
if not root.target then
|
if not root.target then
|
||||||
root.target = alias("admin")
|
root.target = firstchild()
|
||||||
root.index = true
|
root.index = true
|
||||||
end
|
end
|
||||||
|
|
||||||
local page = node("admin")
|
local page = node("admin")
|
||||||
page.target = alias("admin", "status")
|
page.target = firstchild()
|
||||||
page.title = _("Administration")
|
page.title = _("Administration")
|
||||||
page.order = 10
|
page.order = 10
|
||||||
page.sysauth = "root"
|
page.sysauth = "root"
|
||||||
|
|
Loading…
Reference in a new issue