modules/admin-full: resolve scope issue in previous commit
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Dec 2010 20:07:17 +0000 (20:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Dec 2010 20:07:17 +0000 (20:07 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/system.lua

index f304437..f3c5a01 100644 (file)
@@ -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", "")