mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
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:
parent
9e117b64ea
commit
2dd5fd8596
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user