From a2f62c1c1cef5304950280648f65b191d7812c09 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 22 Nov 2020 10:43:43 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20la=20string=20de=20caract=C3=A8re=20q?= =?UTF-8?q?ui=20permet=20de=20mettre=20une=20majuscule=20au=20premier=20mo?= =?UTF-8?q?ts=20et=20supprime=20un=20fichier=20inutile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smarty/plugins/modifier.ucfirst.php | 2 +- .../smarty/plugins/modifier.ucfirst.php3 | 31 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3 diff --git a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php index bb8ff9e..ea14477 100644 --- a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php +++ b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php @@ -20,7 +20,7 @@ */ function smarty_modifier_ucfirst($chaine) { - $chaineS = strtr($chaine, "áàâäãéèêëẽíìîïĩóòôöõúùûüũýỳŷÿỹ", "ÁÀÂÄÃÉÈÊËẼÍÌÎÏĨÓÒÔÖÕÚÙÛÜŨÝỲŶŸỸ"); + $chaineS = strtr($chaine, "áàâäãéèêëẽíìîïĩóòôöõúùûüũýỳŷÿỹ", "ÁÀÂÄÃÉÈÊËẼÍÌÎÏĨÓÒÔÖÕÚÙÛÜŨÝỲŶŸỸ"); if ($chaineS[0].$chaineS[1] != $chaine[0].$chaine[1]) { return $chaineS[0].$chaineS[1].substr($chaine, 2); } else { diff --git a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3 b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3 deleted file mode 100644 index ea01fe6..0000000 --- a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3 +++ /dev/null @@ -1,31 +0,0 @@ - - * Name: capitalize
- * Purpose: capitalize words in the string - * @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE - * capitalize (Smarty online manual) - * @author Monte Ohrt - * @param string - * @return string - */ -function smarty_modifier_ucfirst($chaine) -{ - $chaineS = strtr($chaine, "áàâäãéèêëẽíìîïĩóòôöõúùûüũýỳŷÿỹ", "ÁÀÂÄÃÉÈÊËẼÍÌÎÏĨÓÒÔÖÕÚÙÛÜŨÝỲŶŸỸ"); - if ($chaineS[0].$chaineS[1] != $chaine[0].$chaine[1]) - return $chaineS[0].$chaineS[1].substr($chaine, 2); - else - return ucfirst($chaine); -} - - -?>