Fix usage of truncate length
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 07:13:13 +0000 (01:13 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 07:13:13 +0000 (01:13 -0600)
framework/Util/lib/Horde/String.php

index bc60e69..cbb1040 100644 (file)
@@ -599,7 +599,7 @@ class Horde_String
     static public function truncate($text, $length = 100)
     {
         return (self::length($text) > $length)
-            ? self::substr($text, 0, 100) . ' ...'
+            ? self::substr($text, 0, $length) . ' ...'
             : $text;
     }