fixup default avatar urls by using common function
darcs-hash:20080521155448-84dde-0e71fe5dccea49162911f80c65cd1e2a46043b14.gz
This commit is contained in:
@@ -368,6 +368,14 @@ function common_avatar_url($filename) {
|
||||
return "http://".$config['site']['server'].$config['avatar']['path'].'/'.$filename;
|
||||
}
|
||||
|
||||
function common_default_avatar($size) {
|
||||
static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
|
||||
AVATAR_STREAM_SIZE => 'stream',
|
||||
AVATAR_MINI_SIZE => 'mini');
|
||||
global $config;
|
||||
return "http://".$config['site']['server'].$config['avatar']['path'].'/'.$config['avatar']['default'][$sizenames[$size]];
|
||||
}
|
||||
|
||||
function common_local_url($action, $args=NULL) {
|
||||
global $config;
|
||||
/* XXX: pretty URLs */
|
||||
|
Reference in New Issue
Block a user