summaryrefslogtreecommitdiff
path: root/app/Helper/Text.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-15 20:30:30 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-15 20:30:30 -0400
commit57dd45839b3ed61fc38b15621b688b088f57b04f (patch)
tree17f8c2f627d4900e359817a75a14ec92de777b5c /app/Helper/Text.php
parent100330c989873d535785fdb1586d3602b1def202 (diff)
Use css to truncate the page title
Diffstat (limited to 'app/Helper/Text.php')
-rw-r--r--app/Helper/Text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Helper/Text.php b/app/Helper/Text.php
index cfb557b1..790fc411 100644
--- a/app/Helper/Text.php
+++ b/app/Helper/Text.php
@@ -51,10 +51,10 @@ class Text extends \Core\Base
*/
public function truncate($value, $max_length = 85, $end = '[...]')
{
- $length = strlen($value);
+ $length = mb_strlen($value);
if ($length > $max_length) {
- return substr($value, 0, $max_length).' '.$end;
+ return mb_substr($value, 0, $max_length).' '.$end;
}
return $value;