From 877a8c130508bf034f97c782baf1bd76d2eb0911 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Tue, 24 Jan 2023 19:40:30 +0100 Subject: [PATCH] add method to get user profile pic link --- Models/UserModel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Models/UserModel.php b/Models/UserModel.php index cbbe1d2..8299a03 100644 --- a/Models/UserModel.php +++ b/Models/UserModel.php @@ -117,6 +117,10 @@ final class UserModel extends UserSessionModel return $row["PROFILE_PIC"]; } + public function getProfilePicLink(){ + return "/user/profilePic/".$this->I_ID; + } + public static function searchUsers($S_query) { $O_model = Model::get();