From 9d4ba1471dd8410e1597a18478dbb3b7789d4ec7 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 19 Mar 2016 11:17:58 -0400 Subject: Added letter based avatar provider --- app/Core/User/Avatar/AvatarManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Core/User/Avatar') diff --git a/app/Core/User/Avatar/AvatarManager.php b/app/Core/User/Avatar/AvatarManager.php index 4b0c5298..afaf79d2 100644 --- a/app/Core/User/Avatar/AvatarManager.php +++ b/app/Core/User/Avatar/AvatarManager.php @@ -5,7 +5,7 @@ namespace Kanboard\Core\User\Avatar; /** * Avatar Manager * - * @package user + * @package avatar * @author Frederic Guillot */ class AvatarManager @@ -51,6 +51,8 @@ class AvatarManager 'email' => $email, ); + krsort($this->providers); + foreach ($this->providers as $provider) { if ($provider->isActive($user)) { return $provider->render($user, $size); -- cgit v1.2.3