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:
authorbenakamoorthi <benaka.moorthi@gmail.com>2012-07-19 11:08:35 +0400
committerbenakamoorthi <benaka.moorthi@gmail.com>2012-07-19 11:08:35 +0400
commit4a6fbf1c898c7d0289e308d50afbed488183f3b7 (patch)
treed4fe45e00352e20c87c0631ef423e77e5943dc81 /core/SmartyPlugins
parentd77ec9e889e2a6d8f9969832bfda3aa044c50bc1 (diff)
Fixes #3251, applying pebosi's patch. fix bug in sparkline smarty function.
git-svn-id: http://dev.piwik.org/svn/trunk@6520 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/SmartyPlugins')
-rw-r--r--core/SmartyPlugins/function.sparkline.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/SmartyPlugins/function.sparkline.php b/core/SmartyPlugins/function.sparkline.php
index c2adfe47cb..d2593a090f 100644
--- a/core/SmartyPlugins/function.sparkline.php
+++ b/core/SmartyPlugins/function.sparkline.php
@@ -18,7 +18,8 @@
function smarty_function_sparkline($params, &$smarty = false)
{
$src = $params['src'];
- $width = Piwik_Visualization_Sparkline::getWidth();
- $height = Piwik_Visualization_Sparkline::getHeight();
+ $graph = new Piwik_Visualization_Sparkline();
+ $width = $graph->getWidth();
+ $height = $graph->getHeight();
return "<img class=\"sparkline\" alt=\"\" src=\"$src\" width=\"$width\" height=\"$height\" />";
}