diff options
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r-- | mod/profile/start.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php index f8899226b..671000f80 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -233,20 +233,23 @@ global $CONFIG; if ((!$returnvalue) && ($hook == 'entity:icon:url') && ($params['entity'] instanceof ElggUser)) - { + {
+ $entity = $params['entity']; $type = $entity->type; $subtype = get_subtype_from_id($entity->subtype); $viewtype = $params['viewtype']; $size = $params['size']; - $username = $entity->username; - - if ($icontime = $entity->icontime) { - $icontime = "{$icontime}"; - } else { - $icontime = "default"; - } - + $username = $entity->username;
+
+ if ($icontime = $entity->icontime) {
+ $icontime = "{$icontime}";
+ } else {
+ $icontime = "default";
+ }
+
+ return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size; + /* $filehandler = new ElggFile(); $filehandler->owner_guid = $entity->getGUID(); @@ -257,7 +260,7 @@ return $url; - } + } */ } } |