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 f30443768a7843761dd01c171cae6401d4b2e0f4..f3c5a0143018e1645556f252272a2d23c618be2c 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", "")