diff options
Diffstat (limited to 'app/Controller/AvatarFile.php')
-rw-r--r-- | app/Controller/AvatarFile.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/AvatarFile.php b/app/Controller/AvatarFile.php index 45cb1615..67c3efe1 100644 --- a/app/Controller/AvatarFile.php +++ b/app/Controller/AvatarFile.php @@ -11,7 +11,7 @@ use Kanboard\Core\Thumbnail; * @package controller * @author Frederic Guillot */ -class AvatarFile extends Base +class AvatarFile extends BaseController { /** * Display avatar page @@ -61,8 +61,8 @@ class AvatarFile extends Base $filename = $this->avatarFile->getFilename($user_id); $etag = md5($filename.$size); - $this->response->cache(365 * 86400, $etag); - $this->response->contentType('image/jpeg'); + $this->response->withCache(365 * 86400, $etag); + $this->response->withContentType('image/jpeg'); if ($this->request->getHeader('If-None-Match') !== '"'.$etag.'"') { $this->render($filename, $size); |