aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-09 12:06:05 -0400
committercash <cash.costello@gmail.com>2011-07-09 12:06:05 -0400
commit7a163a886170aa436807f24590dd6c48503ed970 (patch)
tree05318c769ba831709097e675e8923d3b4100690b /pages
parentc16bdb97aac98799b2de39e97696a684f5c50a21 (diff)
downloadelgg-7a163a886170aa436807f24590dd6c48503ed970.tar.gz
elgg-7a163a886170aa436807f24590dd6c48503ed970.tar.bz2
fixed redirect for user avatars if we cannot get the user
Diffstat (limited to 'pages')
-rw-r--r--pages/avatar/view.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/pages/avatar/view.php b/pages/avatar/view.php
index 55ae00e16..eb2cd1010 100644
--- a/pages/avatar/view.php
+++ b/pages/avatar/view.php
@@ -13,9 +13,9 @@ if (!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar
// If user doesn't exist, return default icon
if (!$user) {
- $path = elgg_view("icon/user/default/$size");
- header("Location: $path");
- exit;
+ $url = "_graphics/icons/user/default{$size}";
+ $url = elgg_normalize_url($url);
+ forward($url);
}
// Try and get the icon
@@ -31,9 +31,9 @@ if ($filehandler->open("read")) {
}
if (!$success) {
- $path = elgg_view('icon/user/default/'.$size);
- header("Location: {$path}");
- exit;
+ $url = "_graphics/icons/user/default{$size}";
+ $url = elgg_normalize_url($url);
+ forward($url);
}
header("Content-type: image/jpeg");