use the svg file as the default profile picture

This commit is contained in:
Thomas Rubini 2023-01-24 18:04:39 +01:00
parent 4c224a89bb
commit e9726ad111
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -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"];
}