Skip to content
Snippets Groups Projects
Unverified Commit 26561686 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

feedback

parent 298e1009
No related branches found
No related tags found
No related merge requests found
......@@ -13,13 +13,11 @@ module WithGit
end
def git_path_content_prefix(website)
# Handle legacy language-less websites
# Handle language-less objects
# TODO I18n: Right now, we use the language of the object, fallbacking on the language of the website. In the end, we'll only use the language of the object
path = "content/"
if website.languages.any?
path_language = respond_to?(:language_id) && language_id.present? ? language : website.default_language
path += "#{path_language.iso_code}/"
end
path_language = respond_to?(:language_id) && language_id.present? ? language : website.default_language
path += "#{path_language.iso_code}/"
path
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment