summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-07-03 12:50:43 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-07-03 12:50:43 -0400
commit121b7e60b491ecc01634d275f6b234f2cb628f01 (patch)
treebc2c478820db0971dd85d38572c22c35e121900f /lib
parent1f434f502b70cd43ac5bc0358e04eb3c0ed78c4d (diff)
update using a config'd server
darcs-hash:20080703165043-34904-1e63865bc37f34e5dbb6e194d22e4f35383861c2.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index bbaed32da..7b821e635 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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) {