Permalink
Browse files

fixes language detection in case no language can be detected from hea…

…ders
  • Loading branch information...
1 parent be78a0f commit 61e4d17a18d1fad042176a4f62fcf679ef2f3257 @yeah committed Oct 18, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/non_multilingual_page_extensions.rb
@@ -56,6 +56,7 @@ def languages
weight = both[1] ? Float(both[1]) : 1
[-weight, lang]
end.sort_by(&:first).map(&:last)
+ langs_with_weights.blank? ? [MultilingualPagesExtension::DEFAULT_LANGUAGE] : langs_with_weights
end
def location

0 comments on commit 61e4d17

Please sign in to comment.