Make sure locale is always set, even on first request

This commit is contained in:
Pierre Rudloff 2020-11-21 14:20:01 +01:00
parent 05959b17f0
commit f184bda59b
3 changed files with 4 additions and 4 deletions

View file

@ -2,8 +2,8 @@
{if isset($supportedLocales) AND count($supportedLocales) > 1}
<div class="locales small-font">
<button class="localesBtn small-font" title="{t}Switch language{/t}">
{if isset($locale) AND $locale->getCountry()}
{$locale->getCountry()->getEmoji()}
{if $locale->getLocale()->getCountry()}
{$locale->getLocale()->getCountry()->getEmoji()}
{else}
{t}Set language{/t}
{/if}