diff options
author | diosmosis <benaka@piwik.pro> | 2015-02-21 15:53:29 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-02-21 15:53:29 +0300 |
commit | 183933fc0974dea00193e21f514fb1ba576ef5a5 (patch) | |
tree | cbbb6769a09d06899edcb877df67743a3c04b434 /core/Twig.php | |
parent | f4cde961b602da6c371f5e76413821ed19074d40 (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-x | core/Twig.php | 3 |
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) { |