aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions/init/sanitize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/init/sanitize.php b/functions/init/sanitize.php
index 0370f9f..da9fb3f 100644
--- a/functions/init/sanitize.php
+++ b/functions/init/sanitize.php
@@ -42,7 +42,7 @@ function chopToWordCount($string, $count) {
$words = str_word_count($string, 2);
$last_word = array_slice($words, $count, 1, true);
$pos = key($last_word);
- $string = substr($string, 0, $pos);
+ $string = substr($string, 0, $pos) . '...';
}
return $string;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy