diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-19 11:17:58 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-19 11:17:58 -0400 |
commit | 9d4ba1471dd8410e1597a18478dbb3b7789d4ec7 (patch) | |
tree | b8de40fa34954fd624816795d535bae1df7286c8 /app/Core/User/Avatar | |
parent | fa86542f90774d7a7d8f3e81ee35821ca25b7fd4 (diff) |
Added letter based avatar provider
Diffstat (limited to 'app/Core/User/Avatar')
-rw-r--r-- | app/Core/User/Avatar/AvatarManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
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); |