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

index 1e161d7649af10775f27160d4aa0dc61cb92d88f..aa1fd94cebaa2f49fc9a980af1415a162896d922 100644 (file)
@@ -15,16 +15,6 @@ $Id$
 module("luci.controller.admin.services", package.seeall)
 
 function index()
-       local page
-
-       page        = node("admin", "services", "crontab")
-       page.target = form("admin_services/crontab")
-       page.title  = _("Scheduled Tasks")
-       page.order  = 50
-
-       page        = node("admin", "services")
-       page.target = template("admin_services/index")
-       page.title  = _("Services")
-       page.order  = 40
-       page.index  = true
+       entry({"admin", "services"}, firstchild(), _("Services"), 40).index = true
+       entry({"admin", "services", "crontab"}, form("admin_services/crontab"), _("Scheduled Tasks"), 50)
 end