luci-mod-freifunk: fix lookup of community-name
restore the lookup of the freifunk community-name stored in
uci "freifunk.community.name".
In 9780ee382e
the value changed to the complete path of the community-profile, e.g.
"/etc/config/profile_berlin". This causes lookup problems on other
pages, like "mod-freifunk -> overview -> index" (view/freifunk/index.htm line37, line 54).
And as the option suggests it's the community-name not the community-profile path.
Signed-off-by: Sven Roederer devel-sven@geroedel.de
This commit is contained in:
parent
9151103356
commit
61c7157a66
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ community.rmempty = false
|
|||
local profile
|
||||
for profile in fs.glob(profiles) do
|
||||
local name = uci:get_first(profile, "community", "name") or "?"
|
||||
community:value(profile, name)
|
||||
community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue