diff --git a/include/class.thread.php b/include/class.thread.php index 4b369d404bc4c4d97f092703c91a9f62cf27e32d..1d849f426c3ee300c2b5071b4edc15b6414f5ae1 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -776,7 +776,7 @@ Class ThreadEntry { } function asVar() { - return (string) $this; + return (string) $this->getBody()->display('html'); } function getVar($tag) { @@ -1381,6 +1381,11 @@ class TextThreadBody extends ThreadBody { return '<pre>'.$this->body.'</pre>'; } } + + function asVar() { + // Email template, assume HTML + return $this->display('html'); + } } class HtmlThreadBody extends ThreadBody { function __construct($body, $options=array()) {