Merge pull request #707 from SvenRoederer/fix/freifunk-communitysetting-selection/master
luci-mod-freifunk: fix lookup of community-name
This commit is contained in:
commit
76fea3e278
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue