Skip to content

Commit

Permalink
fixed test error and typo var
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhor committed Jan 3, 2024
1 parent c28b96b commit b745b41
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions gsitemap.php
Expand Up @@ -591,21 +591,18 @@ protected function getManufacturerLink(&$link_sitemap, $lang, &$index, &$i, $id_
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri . Context::getContext()->shop->virtual_uri,
], $image_link) : $image_link;

$manifacturer_image = [];
if (isset($image_link)) {
$manifacturer_image = [
'title_img' => htmlspecialchars(strip_tags($manufacturer->name)),
'caption' => htmlspecialchars(strip_tags($manufacturer->short_description)),
'link' => $image_link,
];
}
$manufacturer_image = [
'title_img' => htmlspecialchars(strip_tags($manufacturer->name)),
'caption' => htmlspecialchars(strip_tags($manufacturer->short_description)),
'link' => $image_link,
];

if (!$this->addLinkToSitemap($link_sitemap, [
'type' => 'manufacturer',
'page' => 'manufacturer',
'lastmod' => $manufacturer->date_upd,
'link' => $url,
'image' => $manifacturer_image
'image' => $manufacturer_image
], $lang['iso_code'], $index, $i, $manufacturer_id['id_manufacturer'])) {
return false;
}
Expand Down

0 comments on commit b745b41

Please sign in to comment.