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