diff options
Diffstat (limited to 'core/CronArchive.php')
-rw-r--r-- | core/CronArchive.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index ec52fe9a31..9e5ffb365b 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -673,11 +673,11 @@ class CronArchive { if (!defined('PIWIK_ARCHIVE_NO_TRUNCATE')) { $m = str_replace(array("\n", "\t"), " ", $m); - if (Common::mb_strlen($m) > self::TRUNCATE_ERROR_MESSAGE_SUMMARY) { + if (mb_strlen($m) > self::TRUNCATE_ERROR_MESSAGE_SUMMARY) { $numCharactersKeepFromEnd = 100; - $m = Common::mb_substr($m, 0, self::TRUNCATE_ERROR_MESSAGE_SUMMARY - $numCharactersKeepFromEnd) + $m = mb_substr($m, 0, self::TRUNCATE_ERROR_MESSAGE_SUMMARY - $numCharactersKeepFromEnd) . ' ... ' . - Common::mb_substr($m, -1 * $numCharactersKeepFromEnd); + mb_substr($m, -1 * $numCharactersKeepFromEnd); } } $this->errors[] = $m; |