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>2015-02-21 15:53:29 +0300
committerdiosmosis <benaka@piwik.pro>2015-02-21 15:53:29 +0300
commit183933fc0974dea00193e21f514fb1ba576ef5a5 (patch)
treecbbb6769a09d06899edcb877df67743a3c04b434 /core/Twig.php
parentf4cde961b602da6c371f5e76413821ed19074d40 (diff)
Fixes #7247, move default Formatter class to new Numeric metrics formatter and use in Graph visualization since jqplot requires numeric values in JSON data.
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 8eeb34ffe4..14add263ee 100755
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -12,7 +12,6 @@ use Exception;
use Piwik\Container\StaticContainer;
use Piwik\DataTable\Filter\SafeDecodeLabel;
use Piwik\Metrics\Formatter;
-use Piwik\Translate;
use Piwik\View\RenderTokenParser;
use Piwik\Visualization\Sparkline;
use Twig_Environment;
@@ -49,7 +48,7 @@ class Twig
$theme = $manager->getThemeEnabled();
$loaders = array();
- $this->formatter = new Formatter();
+ $this->formatter = new Formatter\Api();
//create loader for custom theme to overwrite twig templates
if ($theme && $theme->getPluginName() != \Piwik\Plugin\Manager::DEFAULT_THEME) {