Merge pull request #707 from SvenRoederer/fix/freifunk-communitysetting-selection/master

luci-mod-freifunk: fix lookup of community-name
This commit is contained in:
Hannu Nyman 2016-05-10 12:31:38 +03:00
commit 76fea3e278

View file

@ -16,7 +16,7 @@ community.rmempty = false
local profile local profile
for profile in fs.glob(profiles) do for profile in fs.glob(profiles) do
local name = uci:get_first(profile, "community", "name") or "?" local name = uci:get_first(profile, "community", "name") or "?"
community:value(profile, name) community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
end end