quick fix to get initial from accented strings
This commit is contained in:
parent
51de22d3b7
commit
aa82f3a6a3
|
@ -378,6 +378,9 @@ function tainacan_get_initials($string, $one = false) {
|
|||
if (empty($string)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$string = remove_accents($string);
|
||||
|
||||
if (strlen($string) == 1) {
|
||||
return strtoupper($string);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue