Update website
This commit is contained in:
parent
560432ad3b
commit
0591a4aeb4
@ -142,7 +142,10 @@ function convertFirstNameToInitial($name) {
|
||||
if (strpos($part, '-') !== false) {
|
||||
$hyphenParts = explode('-', $part);
|
||||
$initials = array_map(function($p) {
|
||||
if (!empty($p)) {
|
||||
return ucfirst($p[0]) . '.';
|
||||
}
|
||||
return '';
|
||||
}, $hyphenParts);
|
||||
return implode('-', $initials);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user