Skip to content
Snippets Groups Projects
Commit 4bcf24a1 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #890 from greezybacon/issue/text-emails-to-html


thread: Always embed HTML in email templates

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 1db1f542 a2d15dff
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment