diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 16 |
1 files 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", "") |