From 871dcac8912f9aed8ba474da4a7c741a0d2e8b42 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 21 May 2008 11:12:27 -0400 Subject: [PATCH] full path for avatars darcs-hash:20080521151227-84dde-a4fdacd42dc9be7aa83646f589942931542da73f.gz --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 052f35fdd9..31bf0de1f7 100644 --- a/lib/util.php +++ b/lib/util.php @@ -358,7 +358,7 @@ function common_avatar_path($filename) { function common_avatar_url($filename) { global $config; - return $config['avatar']['path'] . '/' . $filename; + return "http://".$config['site']['server'].$config['avatar']['path'].'/'.$filename; } function common_local_url($action, $args=NULL) {