diff options
author | buckaroo-labs | 2023-12-20 18:14:22 -0800 |
---|---|---|
committer | GitHub | 2023-12-20 18:14:22 -0800 |
commit | 60fd8f4098bc0644ea83212696dd3c39c159175a (patch) | |
tree | cc31ca2da721fc8ed7c57248e90dfe4e862c55f1 /src/SemanticScuttle/functions.php | |
parent | fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae (diff) | |
download | scuttle-60fd8f4098bc0644ea83212696dd3c39c159175a.tar.gz scuttle-60fd8f4098bc0644ea83212696dd3c39c159175a.zip |
Update functions.php
Diffstat (limited to 'src/SemanticScuttle/functions.php')
-rw-r--r-- | src/SemanticScuttle/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SemanticScuttle/functions.php b/src/SemanticScuttle/functions.php index facb72e..517023f 100644 --- a/src/SemanticScuttle/functions.php +++ b/src/SemanticScuttle/functions.php @@ -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((float)$maxSize/2)); + $output = substr($string, 0, round($maxSize/2)).'...'.substr($string, -round((float)$maxSize/2)); } else { $output = $string; } |