Skip to content
Snippets Groups Projects
Commit 03d75a23 authored by Kasalehlia's avatar Kasalehlia Committed by chrissi^
Browse files

config-mode: fix contact info script

parent c3fb6014
No related branches found
No related tags found
No related merge requests found
return function(form, uci)
local pkg_i18n = i18n 'gluon-config-mode-contact-info'
local site_i18n = i18n 'gluon-site'
if uci.get("parker", "owner") == nil then
uci.set("parker", "owner", "owner")
end
local help = site_i18n._translate("gluon-config-mode:contact-help") or pkg_i18n.translate(
'Please provide your contact information here to allow others to contact '
......@@ -22,7 +18,9 @@ return function(form, uci)
o.datatype = 'minlength(1)'
o.optional = true
function o:write(data)
uci:section("parker","owner","owner")
uci:set("parker", "owner", "contact", data)
uci:save("parker")
end
return {'parker'}
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment