From 9cc5a522df25d7f98e578dc483e0ff067b6c1ded Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 30 Aug 2014 12:33:42 +0200 Subject: Fix so rcube_text2html class does not depend on rcmail_string_replacer --- program/lib/Roundcube/rcube_text2html.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program/lib/Roundcube/rcube_text2html.php') diff --git a/program/lib/Roundcube/rcube_text2html.php b/program/lib/Roundcube/rcube_text2html.php index 46c2b7e9a..0afc6d110 100644 --- a/program/lib/Roundcube/rcube_text2html.php +++ b/program/lib/Roundcube/rcube_text2html.php @@ -57,6 +57,8 @@ class rcube_text2html 'end' => '', // enables links replacement 'links' => true, + // string replacer class + 'replacer' => 'rcube_string_replacer', ); @@ -141,7 +143,7 @@ class rcube_text2html { // make links and email-addresses clickable $attribs = array('link_attribs' => array('rel' => 'noreferrer', 'target' => '_blank')); - $replacer = new rcmail_string_replacer($attribs); + $replacer = new $this->config['replacer']($attribs); if ($this->config['flowed']) { $flowed_char = 0x01; -- cgit v1.2.3