Skip to content

Commit 8eb8ae3

Browse files
committed
MAGETWO-32989: Image isn't displayed in CMS page on Frontend if webserver rewrites = no
1 parent 7f3face commit 8eb8ae3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Widget/Model/Template/Filter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ public function widgetDirective($construction)
119119
*/
120120
public function mediaDirective($construction)
121121
{
122-
$value = isset($construction[2]) ? $construction[2] : '';
123-
$params = $this->_getIncludeParameters($value);
122+
$params = $this->_getIncludeParameters($construction[2]);
124123
return $this->_storeManager->getStore()
125124
->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . $params['url'];
126125
}

0 commit comments

Comments
 (0)