Update functions.php
This commit is contained in:
parent
ef7991221b
commit
fabb46f79a
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ function shortenString($string, $maxSize=75) {
|
|||
$output = '';
|
||||
if(strlen($string) > $maxSize) {
|
||||
//2023-12-20 add ROUND() function to avoid 'Deprecated' warning
|
||||
$output = substr($string, 0, $maxSize/2).'...'.substr($string, -round($maxSize/2));
|
||||
$output = substr($string, 0, $maxSize/2).'...'.substr($string, -round((float)$maxSize/2));
|
||||
} else {
|
||||
$output = $string;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue