aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-10 18:15:46 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-10 18:15:46 +0000
commita77be2ace10dab18dea29279549fc81ba2a5fb27 (patch)
tree2219abff8eb2065adf3e65acd6c65e47fbe51d68 /mod/profile/start.php
parentdd663c94b55c9632bd955167e673e1d8d8a46be4 (diff)
downloadelgg-a77be2ace10dab18dea29279549fc81ba2a5fb27.tar.gz
elgg-a77be2ace10dab18dea29279549fc81ba2a5fb27.tar.bz2
Speedy icon bypass.
git-svn-id: https://code.elgg.org/elgg/trunk@2708 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php23
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;
- }
+ } */
}
}