Project

General

Profile

« Previous | Next » 

Revision 60704eef

Added by Marc Dequènes over 14 years ago

  • ID 60704eef9d57f4a9db437c3465dfa1b40a379bed

[fix] don't crash is user has no language preference

View differences:

lib/cyborghood/base/language.rb
def set_language_for_user(user)
if user.nil?
set_default_language
elsif user.preferredLanguage.nil?
logger.debug "User has no language preference, using default"
set_default_language
else
logger.debug "User preference for language: " + user.preferredLanguage

Also available in: Unified diff