mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Fix Deprecated error message
This commit is contained in:
parent
c89129ad20
commit
4dafdda99e
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue