Update settings view, fix default language

This commit is contained in:
Daniel Supernault 2020-01-17 20:55:27 -07:00
parent 5b5cd2ce9a
commit 4223a11e3c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -62,7 +62,7 @@
<div class="col-sm-9">
<select class="form-control" name="language">
@foreach(App\Util\Localization\Localization::languages() as $lang)
<option value="{{$lang}}" {{Auth::user()->language ?? 'en' == $lang ? 'selected':''}}>{{locale_get_display_language($lang, 'en')}} - {{locale_get_display_language($lang, $lang)}}</option>
<option value="{{$lang}}" {{(Auth::user()->language ?? 'en') == $lang ? 'selected':''}}>{{locale_get_display_language($lang, 'en')}} - {{locale_get_display_language($lang, $lang)}}</option>
@endforeach
</select>
</div>