show default profile image in showstream

darcs-hash:20080615014742-84dde-d39f4c7744dc430fdb4ad64a172ffe3e909ee4a0.gz
This commit is contained in:
Evan Prodromou 2008-06-14 21:47:42 -04:00
parent 2fcae93272
commit 596b386a95

View File

@ -113,9 +113,8 @@ class ShowstreamAction extends StreamAction {
function show_personal($profile) {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
if ($avatar) {
common_element_start('div', array('id' => 'profile_avatar'));
common_element('img', array('src' => $avatar->url,
common_element('img', array('src' => ($avatar) ? $avatar->url : common_default_avatar(AVATAR_PROFILE_SIZE),
'class' => 'avatar profile',
'width' => AVATAR_PROFILE_SIZE,
'height' => AVATAR_PROFILE_SIZE,
@ -133,7 +132,7 @@ class ShowstreamAction extends StreamAction {
$this->show_remote_subscribe_form($profile);
}
common_element_end('div');
}
common_element_start('div', array('id' => 'profile_information'));
if ($profile->fullname) {