luci-mod-freifunk: fix the list of community profiles
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
This commit is contained in:
parent
04d60f2144
commit
14456d30fb
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ community.rmempty = false
|
|||
|
||||
local profile
|
||||
for profile in fs.glob(profiles) do
|
||||
local name = uci:get_first(profile, "community", "name") or "?"
|
||||
local name = uci:get_first(string.gsub(profile, "/etc/config/", ""), "community", "name") or "?"
|
||||
community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue