summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-03 13:03:47 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-03 13:03:47 -0400
commit7816e4122a1e9edb241c009b800714e31db5c356 (patch)
treeffb4cd019ed79bdd62ac23b60356c1acc0b722b3 /actions/showstream.php
parent121b7e60b491ecc01634d275f6b234f2cb628f01 (diff)
add a display url function to display URLs
darcs-hash:20080703170347-84dde-1ba2e178dd4051aa63e4073e472c73240e3d9fe8.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index dcb78a462..d6a460b29 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -114,7 +114,7 @@ class ShowstreamAction extends StreamAction {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
common_element_start('div', array('id' => 'profile_avatar'));
- common_element('img', array('src' => ($avatar) ? $avatar->url : common_default_avatar(AVATAR_PROFILE_SIZE),
+ common_element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_PROFILE_SIZE),
'class' => 'avatar profile',
'width' => AVATAR_PROFILE_SIZE,
'height' => AVATAR_PROFILE_SIZE,
@@ -227,7 +227,7 @@ class ShowstreamAction extends StreamAction {
'href' => $other->profileurl,
'class' => 'subscription'));
$avatar = $other->getAvatar(AVATAR_MINI_SIZE);
- common_element('img', array('src' => (($avatar) ? $avatar->url : common_default_avatar(AVATAR_MINI_SIZE)),
+ common_element('img', array('src' => (($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_MINI_SIZE)),
'width' => AVATAR_MINI_SIZE,
'height' => AVATAR_MINI_SIZE,
'class' => 'avatar mini',