Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-06-26 06:43:31 +0400
committermattab <matthieu.aubry@gmail.com>2013-06-26 06:43:31 +0400
commitb8b026929d71b18b84801790169b45b5692b2d6d (patch)
tree62486f07ea4b854ef3e1e362948d74d77cdc6e12 /core/Twig.php
parentef0b94b2bc23305893441a9b99390b22a75a9e0d (diff)
* Some more fixes
Refs #4019
Diffstat (limited to 'core/Twig.php')
-rw-r--r--core/Twig.php3
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);