summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-04-01 00:46:17 -0400
committerMalf Furious <m@lfurio.us>2016-05-01 01:30:04 -0400
commitac5410de94127d7fe139de0e9bf4fd1c20bdae2b (patch)
tree9797b39c7e94f5edc95f08e210e426411ce3fd1f
parent93fa361ba63c8afa2370c43b7918c9dd513a4586 (diff)
downloadscrott-ac5410de94127d7fe139de0e9bf4fd1c20bdae2b.tar.gz
scrott-ac5410de94127d7fe139de0e9bf4fd1c20bdae2b.zip
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: <APP_ROOT>/file.php?d=img/heads&f=<GUID>
-rw-r--r--app/class/user.class.php8
1 files changed, 8 insertions, 0 deletions
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;
+ }
}
?>