Skip to content

Commit

Permalink
Fix #4 Language selector dropdown appears when no other languages exist
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Feb 12, 2018
1 parent b51c7b0 commit 6c91556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/frontend/components/languageSwitcher.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @uses $languageToggleLocales array All supported locales
* @uses $id string A unique ID for this language toggle
*}
{if $languageToggleLocales}
{if $languageToggleLocales && $languageToggleLocales|@count > 1}
<div id="{$id|escape}" class="dropdown language-toggle">
<button class="btn dropdown-toggle" type="button" id="languageToggleMenu{$id|escape}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">{translate key="plugins.themes.healthSciences.language.toggle"}</span>
Expand Down

0 comments on commit 6c91556

Please sign in to comment.