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:
authordiosmosis <benaka@piwik.pro>2014-11-16 03:06:05 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-16 03:06:05 +0300
commite130d9d6ad6d2ba6edc0e2af1a9aa8f548d94b9b (patch)
treea7259f218c949897883952757a2ed97ddec3ee8c /core/Twig.php
parentebce0b377b825a61b1e0bc7a136fd20ad24bdbe3 (diff)
parent4e5610aba57e03d375e8671ec4d90788e8efc70c (diff)
Merge branch 'master' into processed_metrics_metadata
Conflicts: core/Twig.php
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 790de9ab3c..806c7f433f 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -11,7 +11,6 @@ namespace Piwik;
use Exception;
use Piwik\DataTable\Filter\SafeDecodeLabel;
use Piwik\Metrics\Formatter;
-use Piwik\Period\Range;
use Piwik\Translate;
use Piwik\View\RenderTokenParser;
use Piwik\Visualization\Sparkline;
@@ -250,7 +249,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);
}