diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 12:34:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-06 12:34:33 +0000 |
commit | 6b6aedc698b662b7f16e9d4d262284b14cb718c0 (patch) | |
tree | 1aa9b0eed36778d14b9a258e77c92c5310dd568b /mod | |
parent | 1ea58ff10869d00afc464e4fd32d736a01968ad3 (diff) | |
download | elgg-6b6aedc698b662b7f16e9d4d262284b14cb718c0.tar.gz elgg-6b6aedc698b662b7f16e9d4d262284b14cb718c0.tar.bz2 |
Fixed icon overrides
git-svn-id: https://code.elgg.org/elgg/trunk@3114 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/start.php | 12 |
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; + } } } |