projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048e705
)
Fix usage of truncate length
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 4 Aug 2009 07:13:13 +0000
(
01:13
-0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 4 Aug 2009 07:13:13 +0000
(
01:13
-0600)
framework/Util/lib/Horde/String.php
patch
|
blob
|
history
diff --git
a/framework/Util/lib/Horde/String.php
b/framework/Util/lib/Horde/String.php
index
bc60e69
..
cbb1040
100644
(file)
--- a/
framework/Util/lib/Horde/String.php
+++ b/
framework/Util/lib/Horde/String.php
@@
-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;
}