diff options
author | Paweł Sroka <srokap@gmail.com> | 2013-09-26 14:42:51 -0700 |
---|---|---|
committer | Paweł Sroka <srokap@gmail.com> | 2013-09-26 14:42:51 -0700 |
commit | 3a68d33d8b0ce41c0a94331ba772e64544406fab (patch) | |
tree | 3c4607bc34833da58048291d3e37813744b8c2cb /mod | |
parent | 7a9bdd3f5f0e9f9f26a32f91418a53cd36e7e2fe (diff) | |
parent | 12dbe2faa03281cc4c1c30d0f9635620676ac49a (diff) | |
download | elgg-3a68d33d8b0ce41c0a94331ba772e64544406fab.tar.gz elgg-3a68d33d8b0ce41c0a94331ba772e64544406fab.tar.bz2 |
Merge pull request #6086 from beck24/profile-icon-size
Profile icon size
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/icondirect.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profile/icondirect.php b/mod/profile/icondirect.php index dbab5d31f..5f1599e0d 100644 --- a/mod/profile/icondirect.php +++ b/mod/profile/icondirect.php @@ -55,13 +55,13 @@ if ($mysql_dblink) { $user_path = date('Y/m/d/', $join_date) . $guid; $filename = "$data_root$user_path/profile/{$guid}{$size}.jpg"; - $size = @filesize($filename); - if ($size) { + $filesize = @filesize($filename); + if ($filesize) { header("Content-type: image/jpeg"); header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', strtotime("+6 months")), true); header("Pragma: public"); header("Cache-Control: public"); - header("Content-Length: $size"); + header("Content-Length: $filesize"); header("ETag: \"$etag\""); readfile($filename); exit; |