fix_accents #4

Merged
nemunaire merged 2 commits from fix_accents into master 2020-11-22 16:33:22 +00:00
Showing only changes of commit a94289dd2a - Show all commits

View File

@ -20,10 +20,5 @@
*/
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);
}
return mb_convert_case($chaine, MB_CASE_TITLE, 'UTF-8');
}