diff options
| author | monte.ohrt <monte.ohrt@localhost> | 2010-02-18 14:45:27 +0000 |
|---|---|---|
| committer | monte.ohrt <monte.ohrt@localhost> | 2010-02-18 14:45:27 +0000 |
| commit | c5b02880875726acd25dd26de125679781e93e41 (patch) | |
| tree | 9a8988de0abe9e983046ead68c12b9623965947c /libs/plugins | |
| parent | 950c3a7307bb482d31598202ce9b24317b45acea (diff) | |
| download | smarty-c5b02880875726acd25dd26de125679781e93e41.tar.gz smarty-c5b02880875726acd25dd26de125679781e93e41.tar.bz2 smarty-c5b02880875726acd25dd26de125679781e93e41.zip | |
remove unnecessary param for preg
Diffstat (limited to 'libs/plugins')
| -rw-r--r-- | libs/plugins/modifier.truncate.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
