diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-06-26 06:43:31 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-06-26 06:43:31 +0400 |
commit | b8b026929d71b18b84801790169b45b5692b2d6d (patch) | |
tree | 62486f07ea4b854ef3e1e362948d74d77cdc6e12 /core/Twig.php | |
parent | ef0b94b2bc23305893441a9b99390b22a75a9e0d (diff) |
* Some more fixes
Refs #4019
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index 86e96410c3..c5c8cdc2cd 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -162,7 +162,8 @@ class Piwik_Twig if (strlen($string) < $size) { return $string; } else { - return array_shift(str_split($string, $size)) . "..."; + $array = str_split($string, $size); + return array_shift($array) . "..."; } }); $this->twig->addFilter($truncateFilter); |