From d93286985c103a50972fa3936f30569ca1c9eb5f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 18 Oct 2022 11:03:48 +0200 Subject: [PATCH] template flag bug option selected --- core/class/template.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 339c51b3..f71fc6f9 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -484,9 +484,9 @@ class template */ public static function flag($langId, $size = 'auto') { + $lang = 'fr_FR'; switch ($langId) { case '': - $lang = 'fr_FR'; break; case in_array($langId, core::$languages): $lang = $langId; @@ -498,11 +498,11 @@ class template $lang = 'fr_FR'; } } - return '(' . $langId . ')'; + title="' . $lang . '" + alt="(' . $lang . ')"/>'; } /**