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 14d7b7a..663ef70 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"