Skip to content

Commit

Permalink
Merge pull request #1025 from slirx/wrong-parameter-for-getbaseurl
Browse files Browse the repository at this point in the history
Wrong parameter for getting base url for 'media' path in "Image" form element.
  • Loading branch information
vpelipenko committed Feb 13, 2015
2 parents 97b742d + 59c1d9d commit a0727fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Data/Form/Element/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getElementHtml()
$url = $this->_getUrl();

if (!preg_match("/^http\:\/\/|https\:\/\//", $url)) {
$url = $this->_urlBuilder->getBaseUrl('media') . $url;
$url = $this->_urlBuilder->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $url;
}

$html = '<a href="' .
Expand Down

0 comments on commit a0727fb

Please sign in to comment.