From 9d5f120e4345e3b3714641b89dcd23ed754ec5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 20 Nov 2017 21:08:02 +0100 Subject: Fixed @j0k3r's review --- src/Wallabag/CoreBundle/Controller/ConfigController.php | 2 +- src/Wallabag/UserBundle/Resources/views/layout.html.twig | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 7fc8fb69..822130ae 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -437,7 +437,7 @@ class ConfigController extends Controller */ public function setLocaleAction(Request $request, $language = null) { - if ($language != null) { + if ($language !== null) { $this->get('session')->set('_locale', $language); } diff --git a/src/Wallabag/UserBundle/Resources/views/layout.html.twig b/src/Wallabag/UserBundle/Resources/views/layout.html.twig index d2f8df85..3a25bd32 100644 --- a/src/Wallabag/UserBundle/Resources/views/layout.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/layout.html.twig @@ -10,14 +10,16 @@ {% block content %}
- DE - EN - FR
wallabag logo
{% block fos_user_content %} {% endblock fos_user_content %}
+
{% endblock %} -- cgit v1.2.3