From 94225a83c951c6ce4146c6415dab2f0b4bf9276f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Oct 2011 00:38:32 +0000 Subject: [PATCH] modules/admin-full: use firstchild() in services controller --- .../luasrc/controller/admin/services.lua | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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 -- 2.30.2