diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-12 14:09:40 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-12 14:09:40 +0500 |
| commit | 6e5481c5d6cc3cc562cc3674b95dacbcb88372d7 (patch) | |
| tree | 436a7115c077cbfe7111635fb06314bda951ba6b /src/partials.php | |
| parent | 952058eed3a6e8d3eb04dc8795e647ef4f655306 (diff) | |
feat: create image bundles for avatars and banners
Diffstat (limited to 'src/partials.php')
| -rw-r--r-- | src/partials.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partials.php b/src/partials.php index a361f7b..c9ee5cb 100644 --- a/src/partials.php +++ b/src/partials.php @@ -83,8 +83,8 @@ function html_navigation_bar() Signed in as <?php echo $_SESSION["user_name"] ?> <?php echo '<img src="/static/'; - if (is_file($_SERVER['DOCUMENT_ROOT'] . "/static/userdata/avatars/" . $_SESSION["user_id"])) { - echo 'userdata/avatars/' . $_SESSION["user_id"]; + if (is_dir($_SERVER['DOCUMENT_ROOT'] . "/static/userdata/avatars/" . $_SESSION["user_id"])) { + echo 'userdata/avatars/' . $_SESSION["user_id"] . "/1x.webp"; } else { echo 'img/defaults/profile_picture.png'; } |
