diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.php | 6 | ||||
-rw-r--r-- | lib/stream.php | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/common.php b/lib/common.php index 66de209d6..a9fef15f3 100644 --- a/lib/common.php +++ b/lib/common.php @@ -45,7 +45,11 @@ $config = 'image' => 'http://i.creativecommons.org/l/by/3.0/88x31.png'), 'avatar' => array('directory' => INSTALLDIR . '/avatar', - 'path' => '/avatar') + 'path' => '/avatar', + 'default' => + array('profile' => INSTALLDIR .'theme/default/image/default-avatar-profile.png', + 'stream' => INSTALLDIR .'theme/default/image/default-avatar-stream.png', + 'mini' => INSTALLDIR .'theme/default/image/default-avatar-mini.png')) ); $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options'); diff --git a/lib/stream.php b/lib/stream.php index 18b80d898..f5fcf226c 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -34,7 +34,7 @@ class StreamAction extends Action { 'id' => 'notice-' . $notice->id)); $avatar = $profile->getAvatar(AVATAR_STREAM_SIZE); common_element_start('a', array('href' => $profile->profileurl)); - common_element('img', array('src' => ($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR, + common_element('img', array('src' => ($avatar) ? $avatar->url : $config['avatar']['default']['stream'], 'class' => 'avatar stream', 'width' => AVATAR_STREAM_SIZE, 'height' => AVATAR_STREAM_SIZE, |