From: Michael M Slusarz Date: Thu, 4 Mar 2010 04:11:30 +0000 (-0700) Subject: Factor ellipsis size into Horde_String::truncate() output. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=339c841c9e4cc31a8c469a4eb035a8e47d55e50c;p=horde.git Factor ellipsis size into Horde_String::truncate() output. --- diff --git a/framework/Util/lib/Horde/String.php b/framework/Util/lib/Horde/String.php index 557621ced..db02febf2 100644 --- a/framework/Util/lib/Horde/String.php +++ b/framework/Util/lib/Horde/String.php @@ -601,7 +601,7 @@ class Horde_String static public function truncate($text, $length = 100) { return (self::length($text) > $length) - ? self::substr($text, 0, $length) . ' ...' + ? self::substr($text, 0, $length - 3) . ' ...' : $text; }