Commit ef28faf9 by pupi1985

Fix anonymous user images not being displayed

parent c2da0046
...@@ -650,9 +650,6 @@ if (QA_FINAL_EXTERNAL_USERS) { ...@@ -650,9 +650,6 @@ if (QA_FINAL_EXTERNAL_USERS) {
if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); } if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
require_once QA_INCLUDE_DIR . 'app/format.php'; require_once QA_INCLUDE_DIR . 'app/format.php';
if (strlen($handle) == 0) {
return null;
}
$avatarSource = qa_get_user_avatar_source($flags, $email, $blobId); $avatarSource = qa_get_user_avatar_source($flags, $email, $blobId);
...@@ -665,6 +662,9 @@ if (QA_FINAL_EXTERNAL_USERS) { ...@@ -665,6 +662,9 @@ if (QA_FINAL_EXTERNAL_USERS) {
break; break;
case 'local-default': case 'local-default':
$html = qa_get_avatar_blob_html(qa_opt('avatar_default_blobid'), qa_opt('avatar_default_width'), qa_opt('avatar_default_height'), $size, $padding); $html = qa_get_avatar_blob_html(qa_opt('avatar_default_blobid'), qa_opt('avatar_default_width'), qa_opt('avatar_default_height'), $size, $padding);
if (strlen($handle) == 0) {
return $html;
}
break; break;
default: // NULL default: // NULL
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment