1
0

Always use native mb_* functions.

This commit is contained in:
2022-02-20 01:56:52 +01:00
parent 33a98547a7
commit f4bd9bc07a
7 changed files with 9 additions and 9 deletions

View File

@ -34,7 +34,7 @@ include_once(S9Y_INCLUDE_PATH . 'include/functions_smarty.inc.php');
*/
function serendipity_truncateString($s, $len) {
if ( strlen($s) > ($len+3) ) {
$s = serendipity_mb('substr', $s, 0, $len) . '...';
$s = mb_substr($s, 0, $len) . '...';
}
return $s;
}