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:
authormattpiwik <matthieu.aubry@gmail.com>2008-05-09 04:46:42 +0400
committermattpiwik <matthieu.aubry@gmail.com>2008-05-09 04:46:42 +0400
commit94b4ead11c3a3f99fc99f034f10e53f5c8322bcc (patch)
tree25a38bac7fa5a14a47673d1ad14c7aa65988cd96 /modules
parent985a4202c9ab34ee411bb26cecad5cb8da9b0e76 (diff)
- tiny cleaning
git-svn-id: http://dev.piwik.org/svn/trunk@473 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'modules')
-rw-r--r--modules/LogStats.php2
-rw-r--r--modules/Visualization/Sparkline.php13
2 files changed, 5 insertions, 10 deletions
diff --git a/modules/LogStats.php b/modules/LogStats.php
index 0ed573d49d..575471eac8 100644
--- a/modules/LogStats.php
+++ b/modules/LogStats.php
@@ -210,7 +210,7 @@ class Piwik_LogStats
case self::STATE_NO_GET_VARIABLE:
printDebug("No get variables => piwik page");
- echo "Piwik is a free open source <a href='http://piwik.org'>web analytics</a> alternative to Google analytics.";
+ echo "<a href='index.php'>Piwik</a> is a free open source <a href='http://piwik.org'>web analytics</a> alternative to Google analytics.";
break;
diff --git a/modules/Visualization/Sparkline.php b/modules/Visualization/Sparkline.php
index b1aedab5cc..65f529f338 100644
--- a/modules/Visualization/Sparkline.php
+++ b/modules/Visualization/Sparkline.php
@@ -66,21 +66,16 @@ class Piwik_Visualization_Sparkline implements Piwik_iView
$i++;
}
-// echo imagefontwidth(FONT_2);exit;
- // set y-bound, min and max extent lines
- //
$sparkline->SetYMin(0);
-// $sparkline->SetYMax($max);
$sparkline->SetPadding(2); // setpadding is additive
$sparkline->SetPadding(0,//13,//font height
- 3,//4 * (strlen("$last[1]")),
+ 3, //4 * (strlen("$last[1]")),
0, //imagefontheight(FONT_2),
0);
$font = FONT_2;
- $sparkline->SetFeaturePoint($min[0]-1,$min[1],'red', 5);//, $min[1], TEXT_TOP,$font);
- $sparkline->SetFeaturePoint($max[0]-1,$max[1], 'green', 5);//, $max[1], TEXT_TOP,$font);
- $sparkline->SetFeaturePoint($last[0]-1, $last[1], 'blue',5);//, " $last[1]", TEXT_RIGHT,$font);
-
+ $sparkline->SetFeaturePoint($min[0]-1,$min[1],'red', 5);
+ $sparkline->SetFeaturePoint($max[0]-1,$max[1], 'green', 5);
+ $sparkline->SetFeaturePoint($last[0]-1, $last[1], 'blue',5);
$sparkline->SetLineSize(3); // for renderresampled, linesize is on virtual image
$sparkline->RenderResampled(100, 20, 'lineColor');