aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 15:04:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-08 15:04:31 +0000
commit02d4828a86ae00355ebe750d7d121d2dfd29e57e (patch)
treef015929dc6aef6bdc57bc2ee100fc9dbe2dc48b1 /mod
parentfedfac5799b93b0609f4a9fab4623f95b3c906ae (diff)
downloadelgg-02d4828a86ae00355ebe750d7d121d2dfd29e57e.tar.gz
elgg-02d4828a86ae00355ebe750d7d121d2dfd29e57e.tar.bz2
Simple hook to allow for default user and entity icons.
git-svn-id: https://code.elgg.org/elgg/trunk@2225 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/icon.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/profile/icon.php b/mod/profile/icon.php
index 33a5cde7f..d99febd8c 100644
--- a/mod/profile/icon.php
+++ b/mod/profile/icon.php
@@ -39,6 +39,11 @@
if (!$success) {
global $CONFIG;
+ $test = elgg_view("icon/user/default/{$size}",array('entity' => $entity));
+ if (!empty($test)) {
+ header("Location: {$test}");
+ exit;
+ }
$contents = @file_get_contents($CONFIG->pluginspath . "profile/graphics/default{$size}.jpg");
}