diff --git a/Block/Widget/CategoryWidget.php b/Block/Widget/CategoryWidget.php index e7cca13716b91333633338e9e943e67a4394052c..866246f273640059b74e8b379506cde389756863 100755 --- a/Block/Widget/CategoryWidget.php +++ b/Block/Widget/CategoryWidget.php @@ -161,6 +161,10 @@ class CategoryWidget extends Template implements BlockInterface endif; endif; + if (substr($image,-3) != 'jpg'): + return 'media/' . $image; + endif; + if (is_null($width)) : if (is_null($this->getCategoryImageWidth())) : $width = 450;