From c5b02880875726acd25dd26de125679781e93e41 Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Thu, 18 Feb 2010 14:45:27 +0000 Subject: [PATCH] remove unnecessary param for preg --- libs/plugins/modifier.truncate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/modifier.truncate.php b/libs/plugins/modifier.truncate.php index d89bcef5..0ad5f10f 100644 --- a/libs/plugins/modifier.truncate.php +++ b/libs/plugins/modifier.truncate.php @@ -34,7 +34,7 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...', if (mb_strlen($string) > $length) { $length -= min($length, mb_strlen($etc)); if (!$break_words && !$middle) { - $string = preg_replace('/\s+?(\S+)?$/u', '', mb_substr($string, 0, $length + 1), 'p'); + $string = preg_replace('/\s+?(\S+)?$/u', '', mb_substr($string, 0, $length + 1)); } if (!$middle) { return mb_substr($string, 0, $length) . $etc;