mirror of
https://github.com/itflow-org/itflow
synced 2026-03-22 13:35:37 +00:00
Limit Initials to only 2 characters so it doesnt cause Graphic distorions when displaying in a circle
This commit is contained in:
@@ -50,6 +50,7 @@ function initials($str) {
|
|||||||
$ret = '';
|
$ret = '';
|
||||||
foreach (explode(' ', $str) as $word)
|
foreach (explode(' ', $str) as $word)
|
||||||
$ret .= strtoupper($word[0]);
|
$ret .= strtoupper($word[0]);
|
||||||
|
$ret = substr($ret,0, 2);
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user