Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Apply media path to SVG images
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell authored Sep 4, 2019
1 parent a9e984b commit 30dceb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Helper/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ protected function _addSubMenu($items, $level = 0)
$itemImage,
$this->scopeConfig->getValue('menu/menu_image_size/width', ScopeInterface::SCOPE_STORE),
$this->scopeConfig->getValue('menu/menu_image_size/height', ScopeInterface::SCOPE_STORE));
} else {
$itemImage = $this->imageHelper->getMediaImageUrl($itemImage);
}
} else {
$itemImage = $this->imageHelper->getMediaImageUrl($itemImage);
Expand All @@ -200,11 +202,9 @@ protected function _addSubMenu($items, $level = 0)
$html .= $this->_addSubMenu($children, $level + 1);
$html .= '</ul>';
}
$html .= '</li>';
$html .= '</li>';
}

$html .= '';

return $html;
}

Expand Down

0 comments on commit 30dceb7

Please sign in to comment.