|
|
@@ -18,10 +18,10 @@ $nvp = [
|
|
|
];
|
|
|
|
|
|
$file = UserFile::queryOne($nvp);
|
|
|
-if(!$file) HTTP::redirect("/img/blank.png");
|
|
|
+if(!$file) HTTP::redirect("/img/no_image_4_3.png");
|
|
|
|
|
|
$path = $user->getDirectory() . "/" . $file->id . ".jpg";
|
|
|
-if(!file_exists($path)) HTTP::redirect("/img/blank.png");
|
|
|
+if(!file_exists($path)) HTTP::redirect("/img/no_image_4_3.png");
|
|
|
|
|
|
header("Content-Type: image/jpeg");
|
|
|
readfile($path);
|