aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/icondirect.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/profile/icondirect.php b/mod/profile/icondirect.php
index 4d20de149..ce2cc4785 100644
--- a/mod/profile/icondirect.php
+++ b/mod/profile/icondirect.php
@@ -48,8 +48,14 @@
}
if (empty($contents)) {
- global $CONFIG;
- $contents = @file_get_contents(dirname(__FILE__) . "/graphics/default{$size}.jpg");
+ global $CONFIG, $viewinput;
+ $viewinput['view'] = 'icon/user/default/'.$size;
+ ob_start();
+ include(dirname(dirname(dirname(__FILE__))).'/simplecache/view.php');
+ $loc = ob_get_clean();
+ header('Location: ' . $loc);
+ exit;
+ //$contents = @file_get_contents(dirname(__FILE__) . "/graphics/default{$size}.jpg");
}