summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-01-11 16:14:20 +0100
committerGitHub <noreply@github.com>2019-01-11 16:14:20 +0100
commit47d9205fe9b82d3a434def60e479c23ef491a06d (patch)
tree328de6aca3aa6eb948cae6da8b4ea9e239644669 /modules
parent76027fe4e27a37be1c4c1fabbd4369b5f3ff5852 (diff)
parente38e189b35cad922dea032d7faaa456858329edc (diff)
Merge pull request #2450 from pmelange/fix/luci-mod-freifunk_basics
luci-mod-freifunk: fix the list of community profiles
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua2
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