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-14 07:27:34 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-11-14 07:27:34 +0300
commit6e4e61d672e067d9c3eaf056f737016424677230 (patch)
tree70dcca48be3d199543acbe3276bdfca11c99f722 /core/Twig.php
parenta91388d2b1b3c60733ce19f35a4675a1ba6467df (diff)
Replaced usage of deprecated Piwik\Period\Range::factory() to Piwik\Period\Factory::factory()
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);
}