Skip to content

Commit

Permalink
Merge branch '4.2' into 4
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 14, 2024
2 parents 029f5b4 + 6e3cf9d commit bb49ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/BlogObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getCMSFields()
'Root',
Tab::create(
'Main',
TextField::create('Title', _t(__CLASS__ . '.Title', 'Title'))
TextField::create('Title', $this->fieldLabel('Title'))
)
);

Expand Down
1 change: 1 addition & 0 deletions src/Widgets/BlogArchiveWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getCMSFields()
$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);
}

Expand Down

0 comments on commit bb49ba8

Please sign in to comment.