From a77be2ace10dab18dea29279549fc81ba2a5fb27 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 10 Feb 2009 18:15:46 +0000 Subject: Speedy icon bypass. git-svn-id: https://code.elgg.org/elgg/trunk@2708 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'mod/profile/start.php') 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; - } + } */ } } -- cgit v1.2.3