diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2019-01-11 13:29:48 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2019-01-11 13:29:48 +0100 |
commit | e38e189b35cad922dea032d7faaa456858329edc (patch) | |
tree | 4d65bda8f06dabdf9c3607fe89821d3bbe9b7ba8 /modules | |
parent | e3fa766b587a1f8574a0aa979b9e41d9770b38e5 (diff) |
luci-mod-freifunk: fix the list of community profiles
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
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 b08366de6c..eb0b49b11c 100644 --- a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua +++ b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua @@ -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 |