aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/icon.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/icon.php')
-rw-r--r--mod/profile/icon.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/profile/icon.php b/mod/profile/icon.php
index 347ace505..38a9dc1b2 100644
--- a/mod/profile/icon.php
+++ b/mod/profile/icon.php
@@ -39,7 +39,10 @@
if (!$success) {
global $CONFIG;
- $contents = @file_get_contents($CONFIG->pluginspath . "profile/graphics/default{$size}.jpg");
+ $path = elgg_view('icon/user/default/'.$size);
+ header("Location: {$path}");
+ exit;
+ //$contents = @file_get_contents($CONFIG->pluginspath . "profile/graphics/default{$size}.jpg");
}