diff options
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r-- | mod/profile/start.php | 7 |
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(); |