quick fix to get initial from accented strings

This commit is contained in:
leogermani 2019-03-28 14:13:53 -03:00
parent 51de22d3b7
commit aa82f3a6a3
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ function tainacan_get_initials($string, $one = false) {
if (empty($string)) { if (empty($string)) {
return ''; return '';
} }
$string = remove_accents($string);
if (strlen($string) == 1) { if (strlen($string) == 1) {
return strtoupper($string); return strtoupper($string);
} }