diff options
author | Malf Furious <m@lfurio.us> | 2016-09-17 19:06:41 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-09-17 19:06:41 -0400 |
commit | 3c3cde4afc1e590063ca72b10ffe566d7fd690d2 (patch) | |
tree | 81e8369d55b7b91ede5e68c36b18c0795df79241 /app/class | |
parent | f69fe67dec557c27b38535d7e51ed22ae0740e03 (diff) | |
download | scrott-3c3cde4afc1e590063ca72b10ffe566d7fd690d2.tar.gz scrott-3c3cde4afc1e590063ca72b10ffe566d7fd690d2.zip |
Add function Object::getURL()
Diffstat (limited to 'app/class')
-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 8f64fc4..1a01ada 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -595,6 +595,14 @@ abstract class Object extends Framework } /* + * Get URL to this object + */ + function getURL() + { + return $this->ar() . "/" . $this->guid; + } + + /* * Get object's head image */ function getHeadImage() |