1
0
Fork 0

Fix Deprecated error message

This commit is contained in:
Hypolite Petovan 2018-01-14 09:04:46 -05:00
parent c89129ad20
commit 4dafdda99e

View file

@ -2106,7 +2106,8 @@ function text_highlight($s, $lang) {
}
$renderer = new Text_Highlighter_Renderer_Html($options);
$hl = Text_Highlighter::factory($lang);
$factory = new Text_Highlighter();
$hl = $factory->factory($lang);
$hl->setRenderer($renderer);
$o = $hl->highlight($s);
$o = str_replace("\n", '', $o);