From 3c3cde4afc1e590063ca72b10ffe566d7fd690d2 Mon Sep 17 00:00:00 2001
From: Malf Furious <m@lfurio.us>
Date: Sat, 17 Sep 2016 19:06:41 -0400
Subject: Add function Object::getURL()

---
 app/class/object.class.php | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'app/class/object.class.php')

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
@@ -594,6 +594,14 @@ abstract class Object extends Framework
         return false;
     }
 
+    /*
+     * Get URL to this object
+     */
+    function getURL()
+    {
+        return $this->ar() . "/" . $this->guid;
+    }
+
     /*
      * Get object's head image
      */
-- 
cgit v1.2.3