From ac5410de94127d7fe139de0e9bf4fd1c20bdae2b Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 1 Apr 2016 00:46:17 -0400 Subject: Add function getHeadImage() to User class This function will return the path to the head image (user image) for the user object. This path should be something like: /file.php?d=img/heads&f= --- app/class/user.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/class/user.class.php') diff --git a/app/class/user.class.php b/app/class/user.class.php index 1130396..ab9ecf5 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -187,6 +187,14 @@ class User extends Object return "glyphicon glyphicon-user"; } + + /* + * Get this user's head image + */ + function getHeadImage() + { + return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid; + } } ?> -- cgit v1.2.3