Prioritise strings[].name over strings[].community
This commit is contained in:
parent
db8d437ae3
commit
9d5fd432ee
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Communities
|
|||
next unless key == "type" && value == "osm-lc" && id != "OSMF"
|
||||
|
||||
strings = resource["strings"]
|
||||
chapter_name = strings["community"] || strings["name"]
|
||||
chapter_name = strings["name"] || "!! " + strings["community"]
|
||||
url = strings["url"]
|
||||
local_chapters.push({ :id => id, :name => chapter_name, :url => url })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue