From 22aa83de00ca5f89f54d2e07137e9faea29cf667 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Dec 2010 20:07:17 +0000 Subject: [PATCH] modules/admin-full: resolve scope issue in previous commit --- .../admin-full/luasrc/model/cbi/admin_system/system.lua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua index f30443768..f3c5a0143 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua @@ -19,15 +19,13 @@ require("luci.fs") m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device like its hostname or the timezone.")) -function m.on_parse() - local has_rdate = false - - m.uci:foreach("system", "rdate", - function() - has_rdate = true - return false - end) -end +local has_rdate = false + +m.uci:foreach("system", "rdate", + function() + has_rdate = true + return false + end) s = m:section(TypedSection, "system", "") -- 2.11.0