Correction de l'affichage des images

This commit is contained in:
Miraty 2023-11-07 23:38:38 +01:00
parent bb3c5b673c
commit 50e53cbb31
3 changed files with 2 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 990 B

After

Width:  |  Height:  |  Size: 990 B

View File

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 400 B

View File

@ -182,8 +182,8 @@ foreach($services as $service_id => $service) {
?>
<div>
<?php
if (file_exists($img_path)) {
$sizes = getimagesize($img_path);
if (file_exists(SITE . '/' . $img_path)) {
$sizes = getimagesize(SITE . '/' . $img_path);
?>
<img class="imgService" src="<?= $img_path ?>" width="<?= $sizes[0] ?>" height="<?= $sizes[1] ?>" alt="">
<?php } ?>