summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Helper/Text.php4
-rw-r--r--app/Template/layout.php2
2 files changed, 3 insertions, 3 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;
diff --git a/app/Template/layout.php b/app/Template/layout.php
index 989afe18..0d9326f4 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -38,7 +38,7 @@
<?php else: ?>
<header>
<nav>
- <h1><?= $this->url->link('K<span>B</span>', 'app', 'index', array(), false, 'logo', t('Dashboard')).' '.$this->text->truncate($this->e($title)) ?>
+ <h1><?= $this->url->link('K<span>B</span>', 'app', 'index', array(), false, 'logo', t('Dashboard')).' '.$this->e($title) ?>
<?php if (! empty($description)): ?>
<span class="column-tooltip" title='<?= $this->e($this->text->markdown($description)) ?>'>
<i class="fa fa-info-circle"></i>