From e9726ad11160f039ed5b3fba89a57a889cfa8b2e Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Tue, 24 Jan 2023 18:04:39 +0100 Subject: [PATCH] use the svg file as the default profile picture --- Controllers/UserController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Controllers/UserController.php b/Controllers/UserController.php index 3bf0950..2c8eeb2 100644 --- a/Controllers/UserController.php +++ b/Controllers/UserController.php @@ -201,10 +201,11 @@ final class UserController throw new HTTPSpecialCaseException(404); } - header("Content-Type: image/png"); if ($A_user["PROFILE_PIC"] === null) { - echo file_get_contents(Constants::rootDir()."/static/img/generic_user.jpg"); + header("Content-Type: image/svg+xml"); + echo file_get_contents(Constants::rootDir()."/static/img/default_user.svg"); } else { + header("Content-Type: image"); echo $A_user["PROFILE_PIC"]; }