]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
update using a config'd server
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 3 Jul 2008 16:50:43 +0000 (12:50 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 3 Jul 2008 16:50:43 +0000 (12:50 -0400)
darcs-hash:20080703165043-34904-1e63865bc37f34e5dbb6e194d22e4f35383861c2.gz

lib/util.php

index bbaed32da5e5a66e6abecb9303d099d502c71a91..7b821e63513d214bb298a26c892b8b108e864673 100644 (file)
@@ -625,7 +625,12 @@ 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) {
@@ -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) {