aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/start.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 4ab9152f4..a5bf388e7 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -256,19 +256,17 @@
$icontime = "default";
}
- return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size;
- /*
+ //return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size;
+
$filehandler = new ElggFile();
$filehandler->owner_guid = $entity->getGUID();
$filehandler->setFilename("profile/" . $username . $size . ".jpg");
if ($filehandler->exists()) {
- $url = $CONFIG->url . "pg/icon/$username/$size/$icontime.jpg";
-
-
- return $url;
- } */
+ //$url = $CONFIG->url . "pg/icon/$username/$size/$icontime.jpg";
+ return $CONFIG->wwwroot . 'mod/profile/icondirect.php/'.$icontime.'/?username='.$entity->username.'&size='.$size;
+ }
}
}