Fix tests

This commit is contained in:
Pierre Rudloff 2017-06-01 11:08:50 +02:00
parent f6a04458e7
commit c9c3988b91
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,13 @@
</div>
{if isset($supportedLocales)}
<div class="locales">
<button class="localesBtn" title="{t}Switch language{/t}">{$locale->getCountry()->getEmoji()}</button>
<button class="localesBtn" title="{t}Switch language{/t}">
{if isset($locale)}
{$locale->getCountry()->getEmoji()}
{else}
Set language
{/if}
</button>
<ul class="supportedLocales">
{foreach $supportedLocales as $supportedLocale}
{if $supportedLocale != $locale}