Skip to content

Commit

Permalink
fix: broken avatar upload when using the french language
Browse files Browse the repository at this point in the history
fix: more deprecation warnings on image uploads
  • Loading branch information
ellite authored Aug 8, 2024
1 parent 082e80c commit cf0d5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
<?php foreach (scandir('images/avatars') as $index => $image): ?>
<?php if (!str_starts_with($image, '.')): ?>
<img src="images/avatars/<?= $image ?>" alt="<?= $image ?>" class="avatar-option"
data-src="images/avatars/<?= $image ?>" />
data-src="images/avatars/<?= $image ?>">
<?php endif ?>
<?php endforeach ?>
<?php foreach (scandir('images/uploads/logos/avatars') as $index => $image): ?>
<?php if (!str_starts_with($image, '.')): ?>
<div class="avatar-container" data-src="<?= $image ?>">
<img src="images/uploads/logos/avatars/<?= $image ?>" alt="<?= $image ?>"
class="avatar-option" data-src="images/uploads/logos/avatars/<?= $image ?>" />
class="avatar-option" data-src="images/uploads/logos/avatars/<?= $image ?>">
<div class="remove-avatar" onclick="deleteAvatar('<?= $image ?>')"
title="Delete avatar">
<i class="fa-solid fa-xmark"></i>
Expand Down

0 comments on commit cf0d5d3

Please sign in to comment.