mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '4.2' into 4
This commit is contained in:
commit
bb49ba8cbf
@ -41,7 +41,7 @@ trait BlogObject
|
||||
'Root',
|
||||
Tab::create(
|
||||
'Main',
|
||||
TextField::create('Title', _t(__CLASS__ . '.Title', 'Title'))
|
||||
TextField::create('Title', $this->fieldLabel('Title'))
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -85,6 +85,7 @@ class BlogArchiveWidget extends Widget
|
||||
$type = $archiveType->enumValues();
|
||||
|
||||
foreach ($type as $k => $v) {
|
||||
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
|
||||
$type[$k] = _t(__CLASS__ .'.' . ucfirst(strtolower($v ?? '')), $v);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user