From: pmelange Date: Fri, 11 Jan 2019 12:29:48 +0000 (+0100) Subject: luci-mod-freifunk: fix the list of community profiles X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=14456d30fbc75aa38fd156c38a177792fe2ebd16;p=oweals%2Fluci.git luci-mod-freifunk: fix the list of community profiles Signed-off-by: pmelange --- 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 b08366de6..eb0b49b11 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