summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-09-17 19:06:41 -0400
committerMalf Furious <m@lfurio.us>2016-09-17 19:06:41 -0400
commit3c3cde4afc1e590063ca72b10ffe566d7fd690d2 (patch)
tree81e8369d55b7b91ede5e68c36b18c0795df79241 /app/class
parentf69fe67dec557c27b38535d7e51ed22ae0740e03 (diff)
downloadscrott-3c3cde4afc1e590063ca72b10ffe566d7fd690d2.tar.gz
scrott-3c3cde4afc1e590063ca72b10ffe566d7fd690d2.zip
Add function Object::getURL()
Diffstat (limited to 'app/class')
-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 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()