diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-21 11:42:34 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-21 11:42:34 -0400 |
commit | 12a58d87e859cc83ebfbf3dfec96931f4387f2f5 (patch) | |
tree | 9ea2212d06282a7cba88e68e46de8269e21f1d16 | |
parent | 2fa7ab2f44c73dfb66f4cb175fe3200228d357e0 (diff) |
fix path to default avatars
darcs-hash:20080521154234-84dde-e83305636b6bc2bb158db8588838c8b62b1b7af0.gz
-rw-r--r-- | lib/common.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/common.php b/lib/common.php index a9fef15f3..c6bc97d82 100644 --- a/lib/common.php +++ b/lib/common.php @@ -45,12 +45,13 @@ $config = 'image' => 'http://i.creativecommons.org/l/by/3.0/88x31.png'), 'avatar' => array('directory' => INSTALLDIR . '/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')) -); + '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'); $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options'); |