From a5d0d1334d635affc6722a40b3098dbd4a34afa7 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 9 Mar 2009 11:43:46 +0000 Subject: Banned users always have default icons. git-svn-id: https://code.elgg.org/elgg/trunk@3136 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mod') 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(); -- cgit v1.2.3