From: Jo-Philipp Wich Date: Wed, 1 Dec 2010 20:07:17 +0000 (+0000) Subject: modules/admin-full: resolve scope issue in previous commit X-Git-Tag: 0.10.0~331 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22aa83de00ca5f89f54d2e07137e9faea29cf667;p=oweals%2Fluci.git modules/admin-full: resolve scope issue in previous commit --- 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", "")