From 951f793daeb358eace97cdd0b1c321766da55d48 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 18 Sep 2007 14:49:19 +0000 Subject: some fixes. :P - language authors may review their email template files... git-svn-id: file:///svn/phpbb/trunk@8092 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2ce788e80a..3742d89475 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3512,7 +3512,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append if (sizeof($chars) > $max_length) { // Cut off the last elements from the array - $string = implode('', array_slice($chars, 0, $max_length)); + $string = implode('', array_slice($chars, 0, $max_length - utf8_strlen($append))); $stripped = true; } -- cgit v1.2.1