diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-21 11:54:48 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-21 11:54:48 -0400 |
commit | 9933e1e341593b90fab6d366706710d604a1b43f (patch) | |
tree | a55deb6c419a92b271b1b3877e1a36328c023818 /lib/common.php | |
parent | 12a58d87e859cc83ebfbf3dfec96931f4387f2f5 (diff) |
fixup default avatar urls by using common function
darcs-hash:20080521155448-84dde-0e71fe5dccea49162911f80c65cd1e2a46043b14.gz
Diffstat (limited to 'lib/common.php')
-rw-r--r-- | lib/common.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/common.php b/lib/common.php index c6bc97d82..50d0110e2 100644 --- a/lib/common.php +++ b/lib/common.php @@ -45,13 +45,11 @@ $config = 'image' => 'http://i.creativecommons.org/l/by/3.0/88x31.png'), 'avatar' => array('directory' => INSTALLDIR . '/avatar', - 'path' => '/avatar')); - -# these depend on defaults above -$config['avatar']['default'] = - array('profile' => "http://".$config['site']['server'].$config['site']['path'].'/'.'theme/default/image/default-avatar-profile.png', - 'stream' => "http://".$config['site']['server'].$config['site']['path'].'/'.'theme/default/image/default-avatar-stream.png', - 'mini' => "http://".$config['site']['server'].$config['site']['path'].'/'.'theme/default/image/default-avatar-mini.png'); + 'path' => '/avatar', + 'default' => + array('profile' => 'theme/default/image/default-avatar-profile.png', + 'stream' => 'theme/default/image/default-avatar-stream.png', + 'mini' => 'theme/default/image/default-avatar-mini.png'))); $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options'); |