aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:43:46 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:43:46 +0000
commita5d0d1334d635affc6722a40b3098dbd4a34afa7 (patch)
tree198460b51a5b774f47ab462cf92746b3eb0d8a44
parentf570341c39f59b5c0359ad9c429f73f94101fa02 (diff)
downloadelgg-a5d0d1334d635affc6722a40b3098dbd4a34afa7.tar.gz
elgg-a5d0d1334d635affc6722a40b3098dbd4a34afa7.tar.bz2
Banned users always have default icons.
git-svn-id: https://code.elgg.org/elgg/trunk@3136 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/profile/start.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index a5bf388e7..e6c986c76 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -255,9 +255,10 @@
} else {
$icontime = "default";
}
-
- //return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size;
-
+
+ if ($entity->isBanned()) {
+ return elgg_view('icon/user/default/'.$size);
+ }
$filehandler = new ElggFile();
$filehandler->owner_guid = $entity->getGUID();