close #319 Fixed: Users and profile aren't working when using Gravatar

This commit is contained in:
cuneytsenturk
2018-05-01 14:12:22 +03:00
parent 26d25f41ae
commit 7a0cac94b8
4 changed files with 38 additions and 3 deletions

View File

@ -43,8 +43,12 @@
<tr>
<td>
<a href="{{ url('auth/users/' . $item->id . '/edit') }}">
@if (setting('general.use_gravatar', '0') == '1')
<img src="{{ $item->picture }}" class="users-image" alt="{{ $item->name }}" title="{{ $item->name }}">
@else
@if ($item->picture)
<img src="{{ Storage::url($item->picture->id) }}" class="users-image" alt="{{ $item->name }}" title="{{ $item->name }}">
<img src="{{ Storage::url($item->picture->id) }}" class="users-image" alt="{{ $item->name }}" title="{{ $item->name }}">
@endif
@endif
{{ $item->name }}
</a>