diff --git a/modules/core/templates/login.twig b/modules/core/templates/login.twig index cd5b71cdeb0ea83f6ca689b5094d376f0ef6bfee..1cb4ea126af17cbbe24c13804206d8d03371c941 100644 --- a/modules/core/templates/login.twig +++ b/modules/core/templates/login.twig @@ -14,7 +14,11 @@ {% for id, config in sources -%} <li class="pure-menu-item"> <a href="{{ moduleURL('core/login/' ~ id|url_encode) }}" class="pure-menu-link"> - {{ config.name|translateFromArray|default(id) }} + {% if config.name is defined %} + {{ config.name|translateFromArray }} + {% else %} + {{ id }} + {% endif %} </a> </li> {% endfor -%}