mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-10 21:50:06 +01:00
fix: fix hardcoded 5 that was giving everyone the same badge.
This commit is contained in:
parent
c6b3f7770a
commit
ac06c3f8f2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ $total_pfav = array_sum(
|
|||
$total_yfav = $profile_info->favourites->count();
|
||||
|
||||
// Badges
|
||||
$profile_badge = match ((int) 5) {
|
||||
$profile_badge = match ((int) $profile_info['badge']) {
|
||||
1 => '<img src="/img/badges/donate.png" title="[Donated] Donated to Ponepaste" style="margin:5px" alt="Donated to PonePaste" />',
|
||||
2 => '<img src="/img/badges/spoon.png" title="[TheWoodenSpoon] You had one job" style="margin:5px" alt="You had one job" />',
|
||||
3 => '<img src="/img/badges/abadge.png" title="[>AFuckingBadge] Won a PasteJam Competition" style="margin:5px" alt="Won a PasteJam competition" />',
|
||||
|
|
Loading…
Add table
Reference in a new issue