From 71069c0e1b4603a05e48beaede0b5fc3b4151919 Mon Sep 17 00:00:00 2001 From: lydiasan <> Date: Tue, 25 May 2021 10:05:52 +0200 Subject: [PATCH] correction de la variable d'environnement 'LOCALIZATION_ENABLED' --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c23773bd8..6ce5dc733 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -313,7 +313,7 @@ class ApplicationController < ActionController::Base locale = nil if cookies[:locale] locale = cookies[:locale] - elsif ENV.fetch('LOCALIZATION_ENABLED', 'false') == 'true' + elsif ENV['LOCALIZATION_ENABLED'] == 'enabled' locale = http_accept_language.compatible_language_from(I18n.available_locales) else locale = I18n.default_locale