diff options
-rw-r--r-- | app/class/object.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php index 55d0874..8d889e7 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -162,6 +162,14 @@ class object extends table } /* + * Get the URL to the head image resource for this object + */ + public function getHeadImg() : string + { + return ar() . "/df.php?d=heads&f=" . $this->guid; + } + + /* * Set the head image for this object, overwriting any existing * image. $image should be an uploaded file to PHP, still * unhandled. |