From c79bb71e7694d4674c28a7e1192dd644e41fbfdb Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 11 Dec 2025 01:11:23 +0500 Subject: fix: use lazy loading for emotes --- lib/emote.php | 4 ++-- system/emotes/index.php | 4 ++-- users.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/emote.php b/lib/emote.php index 14f6088..4ad71c4 100644 --- a/lib/emote.php +++ b/lib/emote.php @@ -268,7 +268,7 @@ function html_display_emotes(array $emotes, int $scale = 3) // icon echo '
'; $scale = $emote_wall ? "3" : ((string) $scale); - echo "{$e->code}"; + echo "{$e->code}"; echo '
'; // info @@ -299,7 +299,7 @@ function html_display_emoteset(array $emotesets) echo '
'; foreach ($es->emotes as $e) { - echo "{$e->code}"; + echo "{$e->code}"; } echo '
'; diff --git a/system/emotes/index.php b/system/emotes/index.php index d2ac1f8..866eb0e 100644 --- a/system/emotes/index.php +++ b/system/emotes/index.php @@ -82,7 +82,7 @@ if (isset($_GET["id"])) { '; - echo ''; + echo ''; echo '' . $row["code"] . ''; echo ' by '; @@ -126,7 +126,7 @@ if (isset($_GET["id"])) { for ($size = 1; $size < 4; $size++) { echo '
'; - echo ''; diff --git a/users.php b/users.php index 359056a..2375aa1 100644 --- a/users.php +++ b/users.php @@ -488,7 +488,7 @@ if ($is_json) { if ($e_stmt->rowCount() == 1) { echo '/emotes?id=' . $payload["emote"]["id"] . '">'; - echo ' '; + echo ' '; } else { echo '">'; } @@ -499,7 +499,7 @@ if ($is_json) { if ($e_stmt->rowCount() == 1) { echo '/emotes?id=' . $payload["emote"]["id"] . '">'; - echo ' '; + echo ' '; } else { echo '">'; } @@ -528,7 +528,7 @@ if ($is_json) { if ($e_stmt->rowCount() == 1) { echo '/emotes?id=' . $payload["emote"]["id"] . '">'; - echo ' '; + echo ' '; } else { echo '">'; } -- cgit v1.2.3