]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix path to default avatars
authorEvan Prodromou <evan@prodromou.name>
Wed, 21 May 2008 15:42:34 +0000 (11:42 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 21 May 2008 15:42:34 +0000 (11:42 -0400)
darcs-hash:20080521154234-84dde-e83305636b6bc2bb158db8588838c8b62b1b7af0.gz

lib/common.php

index a9fef15f34ad4e96f653773db421e95124292bdf..c6bc97d829b828c43110dfe3137c3466573a2e6b 100644 (file)
@@ -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');