From e9ef5aa8a5a14d37e5a9eb78bb33766f8f1d2a88 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 9 Oct 2019 06:53:37 +0300 Subject: [PATCH] Fixed missing $version param --- app/controllers/avatars.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/avatars.php b/app/controllers/avatars.php index 8d6dcde882..d0123184e8 100644 --- a/app/controllers/avatars.php +++ b/app/controllers/avatars.php @@ -1,6 +1,6 @@ get('/v1/avatars/image') ->label('sdk.method', 'getImage') ->label('sdk.description', '/docs/references/avatars/get-image.md') ->action( - function ($url, $width, $height) use ($response, $request, $version) { + function ($url, $width, $height) use ($response) { $quality = 80; $output = 'png'; $date = date('D, d M Y H:i:s', time() + (60 * 60 * 24 * 45)).' GMT'; // 45 days cache @@ -199,7 +199,7 @@ $utopia->get('/v1/avatars/favicon') ->label('sdk.method', 'getFavicon') ->label('sdk.description', '/docs/references/avatars/get-favicon.md') ->action( - function ($url) use ($response, $request, $version) { + function ($url) use ($response, $version) { $width = 56; $height = 56; $quality = 80;