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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-11-27 03:55:19 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-11-27 03:55:19 +0300
commit7bab10fc9dd46037e39e5cbb3dcca2b420528051 (patch)
tree954046c197d0f4b9cd2b1a791727c79f15a590d4 /core/Twig.php
parent7f7cc482e54158bf3478cebb5359a2ec0bc58ec9 (diff)
parent46a834d5297b8560b48807713753358f74e925a6 (diff)
Merge branch 'master' into di-config
Diffstat (limited to 'core/Twig.php')
-rwxr-xr-xcore/Twig.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 2e0ef95844..b15efe088f 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -10,7 +10,6 @@ namespace Piwik;
use Exception;
use Piwik\DataTable\Filter\SafeDecodeLabel;
-use Piwik\Period\Range;
use Piwik\Translate;
use Piwik\View\RenderTokenParser;
use Piwik\Visualization\Sparkline;
@@ -245,7 +244,7 @@ class Twig
protected function addFilter_prettyDate()
{
$prettyDate = new Twig_SimpleFilter('prettyDate', function ($dateString, $period) {
- return Range::factory($period, $dateString)->getLocalizedShortString();
+ return Period\Factory::build($period, $dateString)->getLocalizedShortString();
});
$this->twig->addFilter($prettyDate);
}