MDL-19266 lib/html2text: fix error in preg_replace_callback on php4
This commit is contained in:
+1
-1
@@ -468,7 +468,7 @@ class html2text
|
||||
|
||||
// Run our defined search-and-replace
|
||||
$text = preg_replace($this->search, $this->replace, $text);
|
||||
$text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text);
|
||||
$text = preg_replace_callback($this->callback_search, array(&$this, '_preg_callback'), $text);
|
||||
|
||||
// Replace known html entities
|
||||
$text = utf8_encode(html_entity_decode($text));
|
||||
|
||||
Reference in New Issue
Block a user