diff --git a/include/class.thread.php b/include/class.thread.php
index 44ab73e28c0eaac4fd9ea8e7e21cc1d34519b5ce..6b0df71d49afd394aa5fdbbd3c17c2be50b6e59e 100644
--- a/include/class.thread.php
+++ b/include/class.thread.php
@@ -1377,6 +1377,11 @@ class ThreadBody /* extends SplString */ {
         return $this->display('html');
     }
 
+    function asVar() {
+        // Email template, assume HTML
+        return $this->display('email');
+    }
+
     function display($format=false) {
         throw new Exception('display: Abstract display() method not implemented');
     }
@@ -1421,11 +1426,6 @@ class TextThreadBody extends ThreadBody {
             return '<pre>'.$this->body.'</pre>';
         }
     }
-
-    function asVar() {
-        // Email template, assume HTML
-        return $this->display('email');
-    }
 }
 class HtmlThreadBody extends ThreadBody {
     function __construct($body, $options=array()) {