diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-01 20:07:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-12-01 20:07:17 +0000 |
commit | 22aa83de00ca5f89f54d2e07137e9faea29cf667 (patch) | |
tree | 759b750e34691d76df97ebf156db6fe9de0175e8 /modules/admin-full/luasrc | |
parent | 9be4231a10d6482282ed7f290b9b30ec49558d1a (diff) |
modules/admin-full: resolve scope issue in previous commit
Diffstat (limited to 'modules/admin-full/luasrc')
-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", "") |