diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-05-10 12:31:38 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2016-05-10 12:31:38 +0300 |
commit | 76fea3e278b6d9bd96bf7bef9b6128c6575b063e (patch) | |
tree | e14f5e924765b0c2ae2fe726cdf90675a21c422d /modules | |
parent | 2acf3862cb37e7d364a58270c48b85ed6b4c19cf (diff) | |
parent | 61c7157a66b4bbce7d110cc0de8164bd2bd57798 (diff) |
Merge pull request #707 from SvenRoederer/fix/freifunk-communitysetting-selection/master
luci-mod-freifunk: fix lookup of community-name
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua index 0d3d971c3..b08366de6 100644 --- a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua +++ b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua @@ -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 |