From 4dafdda99ef91ecaefb15f8019e64e1e1f2b28af Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 14 Jan 2018 09:04:46 -0500 Subject: [PATCH] Fix Deprecated error message --- include/text.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/text.php b/include/text.php index 4636334e8..b34c3e902 100644 --- a/include/text.php +++ b/include/text.php @@ -1041,7 +1041,7 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) { * @param string $url Search url. * @param bool $save Show save search button. * @param bool $aside Display the search widgit aside. - * + * * @return string Formatted HTML. */ function search($s, $id = 'search-box', $url = 'search', $save = false, $aside = true) @@ -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);