use the svg file as the default profile picture
This commit is contained in:
parent
4c224a89bb
commit
e9726ad111
@ -201,10 +201,11 @@ final class UserController
|
|||||||
throw new HTTPSpecialCaseException(404);
|
throw new HTTPSpecialCaseException(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Content-Type: image/png");
|
|
||||||
if ($A_user["PROFILE_PIC"] === null) {
|
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 {
|
} else {
|
||||||
|
header("Content-Type: image");
|
||||||
echo $A_user["PROFILE_PIC"];
|
echo $A_user["PROFILE_PIC"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user