Fix testcase.

This commit is contained in:
takezoe
2013-10-16 04:47:43 +09:00
parent da62c6181e
commit f40c7ff4fa
2 changed files with 9 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ trait AvatarImageProvider { self: RequestCache =>
s"""${context.path}/${account.userName}/_avatar"""
}
} getOrElse {
if(mailAddress.nonEmpty && getSystemSettings().gravatar){
if(getSystemSettings().gravatar){
s"""http://www.gravatar.com/avatar/${StringUtil.md5(mailAddress.toLowerCase)}?s=${size}"""
} else {
s"""${context.path}/_unknown/_avatar"""