*** empty log message ***

This commit is contained in:
andrey
2001-01-30 17:41:48 +00:00
parent fdef1c65b1
commit d7fa3e0802

View File

@@ -86,6 +86,9 @@ function smarty_mod_escape($string, $esc_type = 'html')
\*======================================================================*/
function smarty_mod_truncate($string, $length = 80, $etc = '...', $break_words = false)
{
if ($length == 0)
return '';
if (strlen($string) > $length) {
$length -= strlen($etc);
$fragment = substr($string, 0, $length+1);