From 78b8829e1892bae27de7091dd17b8bb2859ed9da Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Tue, 18 Sep 2012 09:43:23 -0400
Subject: [PATCH] Add "asVar" support to help topic object

---
 include/class.topic.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/class.topic.php b/include/class.topic.php
index c8e6a9e72..900ff7616 100644
--- a/include/class.topic.php
+++ b/include/class.topic.php
@@ -48,6 +48,10 @@ class Topic {
     function reload() {
         return $this->load();
     }
+
+    function asVar() {
+        return $this->getName();
+    }
     
     function getId() {
         return $this->id;
-- 
GitLab