modules/admin-full: use firstchild() in index controller
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 00:50:58 +0000 (00:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 00:50:58 +0000 (00:50 +0000)
modules/admin-full/luasrc/controller/admin/index.lua

index 14d7b7a61ccfc4d0e2018eb26a1b2126b3247aea..663ef70229846ed33fb12c87e32c298955df267d 100644 (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"