summaryrefslogtreecommitdiffstats
path: root/app/class/object.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-09-13 23:32:37 -0400
committerMalf Furious <m@lfurio.us>2016-09-13 23:32:37 -0400
commit7fd20cd4e15aec3079377e48f18ba91bbda462eb (patch)
tree56ceaa67b92b42a892e163a5dca5c1b3f68aa490 /app/class/object.class.php
parent9f287ae8422ec202b56c7897a6795c34d1d28a3b (diff)
downloadscrott-7fd20cd4e15aec3079377e48f18ba91bbda462eb.tar.gz
scrott-7fd20cd4e15aec3079377e48f18ba91bbda462eb.zip
Move function User::getHeadImage() to Object class
Increase the scope of this function so it may be used by groups.
Diffstat (limited to 'app/class/object.class.php')
-rw-r--r--app/class/object.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php
index cfc452c..8f64fc4 100644
--- a/app/class/object.class.php
+++ b/app/class/object.class.php
@@ -593,6 +593,14 @@ abstract class Object extends Framework
return false;
}
+
+ /*
+ * Get object's head image
+ */
+ function getHeadImage()
+ {
+ return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid;
+ }
}
/*