Merge pull request #411 from lekoala/patch-1

remove i18n formatting in links
This commit is contained in:
Daniel Hensby 2016-07-15 14:16:56 +01:00 committed by GitHub
commit 9f09218da2

View File

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