From 6b6aedc698b662b7f16e9d4d262284b14cb718c0 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 6 Mar 2009 12:34:33 +0000 Subject: Fixed icon overrides git-svn-id: https://code.elgg.org/elgg/trunk@3114 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 12 +++++------- 1 file 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; + } } } -- cgit v1.2.3