modules/admin-full: resolve scope issue in previous commit
This commit is contained in:
parent
9be4231a10
commit
22aa83de00
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
local has_rdate = false
|
||||
|
||||
m.uci:foreach("system", "rdate",
|
||||
function()
|
||||
has_rdate = true
|
||||
return false
|
||||
end)
|
||||
end
|
||||
m.uci:foreach("system", "rdate",
|
||||
function()
|
||||
has_rdate = true
|
||||
return false
|
||||
end)
|
||||
|
||||
|
||||
s = m:section(TypedSection, "system", "")
|
||||
|
|
Loading…
Reference in a new issue