some fixes

This commit is contained in:
Andreas Gohr
2012-11-28 10:22:06 +01:00
parent 45b3f61559
commit 31cec8595f
2 changed files with 5 additions and 4 deletions

View File

@ -113,7 +113,7 @@ class syntax_plugin_statdisplay extends DokuWiki_Syntax_Plugin {
if($year < 2000 || $year > 2050) return '';
$month = array_search($month, $months);
if(!$month) return '';
return sprintf("%d-%0d", $year, $month);
return sprintf("%d-%02d", $year, $month);
}
}