mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '3.1' into 3.2
This commit is contained in:
commit
19cfe75671
@ -396,9 +396,9 @@ class BlogController extends PageController
|
|||||||
if ($this->owner->getArchiveDay()) {
|
if ($this->owner->getArchiveDay()) {
|
||||||
$date = $this->owner->getArchiveDate()->Nice();
|
$date = $this->owner->getArchiveDate()->Nice();
|
||||||
} elseif ($this->owner->getArchiveMonth()) {
|
} elseif ($this->owner->getArchiveMonth()) {
|
||||||
$date = $this->owner->getArchiveDate()->format('F, Y');
|
$date = $this->owner->getArchiveDate()->format('MMMM, y');
|
||||||
} else {
|
} else {
|
||||||
$date = $this->owner->getArchiveDate()->format('Y');
|
$date = $this->owner->getArchiveDate()->format('y');
|
||||||
}
|
}
|
||||||
|
|
||||||
$items[] = _t(
|
$items[] = _t(
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
<% if $ArchiveDay %>
|
<% if $ArchiveDay %>
|
||||||
$ArchiveDate.Nice
|
$ArchiveDate.Nice
|
||||||
<% else_if $ArchiveMonth %>
|
<% else_if $ArchiveMonth %>
|
||||||
$ArchiveDate.format('F, Y')
|
$ArchiveDate.format('MMMM, y')
|
||||||
<% else %>
|
<% else %>
|
||||||
$ArchiveDate.format('Y')
|
$ArchiveDate.format('y')
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% else_if $CurrentTag %>
|
<% else_if $CurrentTag %>
|
||||||
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
||||||
|
Loading…
Reference in New Issue
Block a user