mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:16:21 +00:00
comprobar que los idiomas también existan
This commit is contained in:
parent
23e2edf259
commit
d56eeb465a
1 changed files with 3 additions and 1 deletions
|
@ -145,11 +145,13 @@ class UriCollectionJob < PeriodicJob
|
||||||
uri = "/#{locale}/".squeeze('/')
|
uri = "/#{locale}/".squeeze('/')
|
||||||
dir = File.join(destination, locale)
|
dir = File.join(destination, locale)
|
||||||
|
|
||||||
|
next unless File.directory? dir
|
||||||
|
|
||||||
files(dir).map do |f|
|
files(dir).map do |f|
|
||||||
uri + f
|
uri + f
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end.flatten(3)
|
end.flatten(3).compact
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [Array]
|
# @return [Array]
|
||||||
|
|
Loading…
Reference in a new issue