diff --git a/src/Sylius/Behat/Element/Admin/TopBarElement.php b/src/Sylius/Behat/Element/Admin/TopBarElement.php index de7140e4aef..5de51c2ba8d 100644 --- a/src/Sylius/Behat/Element/Admin/TopBarElement.php +++ b/src/Sylius/Behat/Element/Admin/TopBarElement.php @@ -24,7 +24,7 @@ public function hasAvatarInMainBar(string $avatarPath): bool public function hasDefaultAvatarInMainBar(): bool { - return strpos($this->getAvatarImagePath(), '//placehold.it/50x50') !== false; + return strpos($this->getAvatarImagePath(), '/assets/admin/img/50x50.png') !== false; } private function getAvatarImagePath(): string diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig index f74845a70d5..0ae1472d259 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/AdminUser/_avatarImage.html.twig @@ -1,7 +1,7 @@ {% if app.user.avatar is not empty and app.user.avatar.path is not empty %} {% set path = app.user.avatar.path|imagine_filter('sylius_admin_admin_user_avatar_thumbnail') %} {% else %} - {% set path = '//placehold.it/50x50' %} + {% set path = asset('assets/admin/img/50x50.png') %} {% endif %} diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig index e2bc1612364..324ce1aaa0a 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_mainImage.html.twig @@ -3,7 +3,7 @@ {% elseif product.images.first %} {% set path = product.images.first.path|imagine_filter(filter|default('sylius_admin_product_thumbnail')) %} {% else %} - {% set path = '//placehold.it/200x200' %} + {% set path = asset('assets/admin/img/200x200.png') %} {% endif %} diff --git a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig index 25f80258ebd..128c9b62f31 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig +++ b/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_media.html.twig @@ -7,7 +7,7 @@ {% if product.images|length >= 1 %}