modules/admin-full: use firstchild() in index controller

This commit is contained in:
Jo-Philipp Wich 2011-10-26 00:50:58 +00:00
parent 7e882e8bd6
commit 76548e7dad

View file

@ -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"