aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 18:14:48 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 18:14:48 +0000
commiteb6b0bd5e7640872c9ed07eda6f67ce9825f19ef (patch)
tree220339d319f22737d2934f36c9f50d703977497b /mod/profile
parentf8768d5dd98a9d42e9ad20f1c9a6d30678cd0e24 (diff)
downloadelgg-eb6b0bd5e7640872c9ed07eda6f67ce9825f19ef.tar.gz
elgg-eb6b0bd5e7640872c9ed07eda6f67ce9825f19ef.tar.bz2
Icondirect now falls back on the cached default view
git-svn-id: https://code.elgg.org/elgg/trunk@2772 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-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");
}