update using a config'd server
darcs-hash:20080703165043-34904-1e63865bc37f34e5dbb6e194d22e4f35383861c2.gz
This commit is contained in:
parent
1f434f502b
commit
121b7e60b4
|
@ -625,8 +625,13 @@ function common_avatar_path($filename) {
|
|||
}
|
||||
|
||||
function common_avatar_url($filename) {
|
||||
$server = common_config('avatar', 'server');
|
||||
if ($server) {
|
||||
return 'http://'.$server.'/'.$filename;
|
||||
} else {
|
||||
return common_path('avatar/'.$filename);
|
||||
}
|
||||
}
|
||||
|
||||
function common_default_avatar($size) {
|
||||
static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
|
||||
|
@ -930,7 +935,7 @@ function common_ensure_syslog() {
|
|||
|
||||
function common_log($priority, $msg, $filename=NULL) {
|
||||
common_ensure_syslog();
|
||||
syslog($priority, $msg);
|
||||
# syslog($priority, $msg);
|
||||
}
|
||||
|
||||
function common_debug($msg, $filename=NULL) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user