From 59c1d9d519374ba65834afdb27d00d7980e77c5e Mon Sep 17 00:00:00 2001 From: slirx Date: Sat, 7 Feb 2015 00:58:34 +0200 Subject: [PATCH] Fix: wrong parameter for getting base url for 'media' path in "Image" form element. --- lib/internal/Magento/Framework/Data/Form/Element/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Image.php b/lib/internal/Magento/Framework/Data/Form/Element/Image.php index c4d143c05db84..9c3577813ca0d 100644 --- a/lib/internal/Magento/Framework/Data/Form/Element/Image.php +++ b/lib/internal/Magento/Framework/Data/Form/Element/Image.php @@ -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 = '