From f60e952ac00e3b8c9bad9430dd80b7ee7fddf2db Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 11 Apr 2014 10:28:10 -0500
Subject: [PATCH] Add abstract ::display method to ThreadBody

---
 include/class.thread.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/class.thread.php b/include/class.thread.php
index 7ce4ec403..9d1721296 100644
--- a/include/class.thread.php
+++ b/include/class.thread.php
@@ -1332,13 +1332,17 @@ class ThreadBody /* extends SplString */ {
     }
 
     function __toString() {
-        return $this->display();
+        return (string) $this->body;
     }
 
     function toHtml() {
         return $this->display('html');
     }
 
+    function display($format=false) {
+        throw new Exception('display: Abstract dispplay() method not implemented');
+    }
+
     static function fromFormattedText($text, $format=false) {
         switch ($format) {
         case 'text':
-- 
GitLab