Skip to content

Commit

Permalink
Fix PHP Fatal Error with preconfigured assets from layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jul 8, 2021
1 parent 295f601 commit d9ebd3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.4.12] - 8 July 2021
### Fixed
- Fix PHP Fatal Error with preconfigured assets from layout

## [1.4.11] - 7 July 2021
### Fixed
- Prevent multiple rel-attributes
Expand Down
2 changes: 1 addition & 1 deletion Link/LinkParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private function addLinkHeadersFromLayout()
if (!empty($links)) {
foreach ($links as $link) {
$link = $this->assetRepository->getUrlWithParams($link, []);
$this->addLink($link, $type);
$this->addLink($link, $type, '');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yireo/magento2-linkpreload",
"version": "1.4.11",
"version": "1.4.12",
"license": "OSL-3.0",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/linkpreload",
Expand Down

0 comments on commit d9ebd3a

Please sign in to comment.