From: Jo-Philipp Wich Date: Wed, 26 Oct 2011 00:38:32 +0000 (+0000) Subject: modules/admin-full: use firstchild() in services controller X-Git-Tag: 0.11.0~1484 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94225a83c951c6ce4146c6415dab2f0b4bf9276f;p=project%2Fluci.git modules/admin-full: use firstchild() in services controller --- diff --git a/modules/admin-full/luasrc/controller/admin/services.lua b/modules/admin-full/luasrc/controller/admin/services.lua index 1e161d7649..aa1fd94ceb 100644 --- a/modules/admin-full/luasrc/controller/admin/services.lua +++ b/modules/admin-full/luasrc/controller/admin/services.lua @@ -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