remove i18n formatting in links

the getArchiveMonth and getArchiveYear only accepts number in Blog.php. Removing i18n formatting restore the functionnality.
This commit is contained in:
Thomas Portelange 2016-07-15 14:31:11 +02:00 committed by GitHub
parent 9e117b64ea
commit 2dd5fd8596

View File

@ -113,12 +113,12 @@ class BlogArchiveWidget extends Widget
$date->setValue($post->PublishDate);
if ($this->ArchiveType == 'Yearly') {
$year = $date->FormatI18N("%Y");
$year = $date->Format("Y");
$month = null;
$title = $year;
} else {
$year = $date->FormatI18N("%Y");
$month = $date->FormatI18N("%m");
$year = $date->Format("Y");
$month = $date->Format("m");
$title = $date->FormatI18N("%B %Y");
}