summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-21 07:57:27 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-21 07:57:27 -0400
commit289c44141d7d6aabd924f6543c1a49df5b3444c4 (patch)
tree91a43c31509537dd6009b8c683b5ba5a21befab2 /lib
parent396027cde825ea4d73eb2c852c39b5bf7e79aed8 (diff)
default avatar
darcs-hash:20080521115727-84dde-73b58873e08c936139bd63cffab0c30883c9f8a5.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php6
-rw-r--r--lib/stream.php2
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,