Commit cfa92838 authored by Wildan Dicky Alnatara's avatar Wildan Dicky Alnatara
Browse files

fixing profile picture

parent ce99c5c7
......@@ -3,12 +3,12 @@
class fileProcessing {
public const PROFILE_DEFAULT = 'default.jpg';
public static function isExistBookImage (string $name): bool {
public static function isExistBookImage ($name): bool {
return file_exists('../images/books_picture/'.$name.'.jpg');
}
public static function isExistProfileImage (string $name): bool {
return file_exists($name);
public static function isExistProfileImage ($name): bool {
return file_exists('../uploads/'.$name.'.jpg');
}
public static function getImageBookPathFromRoot (string $name): string {
......
......@@ -8,7 +8,7 @@ function viewProfile (array $params) {
<div class="flex-profile-header">
<div class="flex-1"></div>
<div class="flex-2">
<img class="profile-photo margin-20" src="'.$params['profile_picture'].'">
<img class="profile-photo margin-20" src="/uploads/'.$params['profile_picture'].'">
<div id="username" class="text-size-50">'.$params['name'].'</div>
</div>
<a class="flex-container add-flex-end-justify flex-1 " href="edit_profile">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment