SVN: toys/stbr/stats/daily.php

shadzik shadzik at pld-linux.org
Sat Jan 2 14:07:21 CET 2010


Author: shadzik
Date: Sat Jan  2 14:07:21 2010
New Revision: 11082

Modified:
   toys/stbr/stats/daily.php
Log:
- fix month format (no need to put extra zero before the month)


Modified: toys/stbr/stats/daily.php
==============================================================================
--- toys/stbr/stats/daily.php	(original)
+++ toys/stbr/stats/daily.php	Sat Jan  2 14:07:21 2010
@@ -8,8 +8,8 @@
 $year = date("Y");
 $month = date("m");
 $max_days = date("t");
-if ($month < 10)
-	$month = "0".$month;
+//if ($month < 10)
+//	$month = "0".$month;
 $days = array();
 for ($i=1; $i<=$max_days; $i++) {
 	if ($i < 10)
@@ -40,7 +40,7 @@
 	$scale = $ti_max;
 
 $month_name = date("F");
-$title = new title("Daily Requests in $month_name");
+$title = new title("Daily Requests in $month_name $year");
 
 $th_bar->set_values($thm);
 $th_bar->set_colour('#FF6633');


More information about the pld-cvs-commit mailing list