Commits

Kai Diefenbach committed 0ef4137

Take care of missing lfc_context.

Comments (0)

Files changed (1)

lfc_theme/templates/lfc/base.html

         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}lfc_theme/css/lfc.css">
         {% block css %}{% endblock %}
 
-        <script type="text/javascript" src="{{ MEDIA_URL }}lfc/jquery/jquery.pack.js"></script>
+        <script type="text/javascript" src="{{ MEDIA_URL }}lfc/jquery/jquery.min.js"></script>
         <script type="text/javascript" src="{{ MEDIA_URL }}lfc/jquery/jquery.tools.min.js"></script>
         <script type="text/javascript" src="{{ MEDIA_URL }}lfc/lightbox/js/jquery.lightbox-0.5.js"></script>
         <script type="text/javascript" src="{{ MEDIA_URL }}lfc_theme/js/lfctheme.js"></script>
                         {% lfc_languages %}
                         {% for language in lfc_languages %}
                             {% if language.is_available %}
-                                <a href='{% url lfc_set_language language.code lfc_context.id %}'>
-                                    {% trans language.name %}</a>
+                                {% if lfc_context %}
+                                    <a href='{% url lfc_set_language language.code lfc_context.id %}'>
+                                        {% trans language.name %}</a>
+                                {% else %}
+                                    <a href='{% url lfc_set_language language.code %}'>
+                                        {% trans language.name %}</a>
+                                {% endif %}
                             {% else %}
                                 <span>{% trans language.name %}</a>
                             {% endif %}