Browse Source

edit function truncate

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@57 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
ejikharev 16 years ago
parent
commit
9effa59c03
  1. 2
      classes/Sublimer.class.php

2
classes/Sublimer.class.php

@ -104,7 +104,7 @@ final class Sublimer
*/
protected function trimString($text, $count = 15, $postfix = "...")
{
return mb_substr($text, 0, $count).$postfix;
return (mb_strlen($text) > $count) ? mb_substr($text, 0, $count).$postfix : $text;
}

Loading…
Cancel
Save