Permalink
Browse files

Fixed issue #1

  • Loading branch information...
1 parent b8c493f commit 2557f75e9a760497620cb00c20314cfae771f3b0 @parvas committed May 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/classes/Text.php
View
@@ -29,7 +29,7 @@ public static function limit_chars($text, $limit, $end = '...')
return $text;
}
- return substr($text, 0, $limit - strlen($end)) . $end;
+ return mb_substr($text, 0, $limit - strlen($end), 'UTF-8') . $end;
}
/**

0 comments on commit 2557f75

Please sign in to comment.