diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-15 20:42:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-15 20:42:41 -0400 |
commit | 56d5b96fc08fe69e3991b7909798b1db0ea5097b (patch) | |
tree | 8ed665f7507c81f9aec1f0cd5b7ccc97a4c882c4 /app/Helper/Text.php | |
parent | b96e6f82c8fa758b52790bdcf6a9a856b606fed6 (diff) |
Remove truncate helper and use css instead
Diffstat (limited to 'app/Helper/Text.php')
-rw-r--r-- | app/Helper/Text.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/Helper/Text.php b/app/Helper/Text.php index 790fc411..4b8e99bd 100644 --- a/app/Helper/Text.php +++ b/app/Helper/Text.php @@ -42,25 +42,6 @@ class Text extends \Core\Base } /** - * Truncate a long text - * - * @param string $value Text - * @param integer $max_length Max Length - * @param string $end Text end - * @return string - */ - public function truncate($value, $max_length = 85, $end = '[...]') - { - $length = mb_strlen($value); - - if ($length > $max_length) { - return mb_substr($value, 0, $max_length).' '.$end; - } - - return $value; - } - - /** * Return true if needle is contained in the haystack * * @param string $haystack Haystack |