Skip to content
Snippets Groups Projects
Commit 6dcfd359 authored by Imran Hussain's avatar Imran Hussain
Browse files

Fixed php warning on pastebin display page

parent c9cf562d
No related branches found
No related tags found
No related merge requests found
......@@ -222,13 +222,13 @@ if (!empty($id) || !empty($code)) {
$pblang = 'HTML';
}
$renderer = new Text_Highlighter_Renderer_Array_dez();
$hl = &Text_Highlighter::factory($pblang);
$tmpobj = new Text_Highlighter;
$hl =& $tmpobj->factory($pblang);
$hl->setRenderer($renderer);
// Have to decode again here for the highlighting
// It might be a little better if we kept the unencoded version from above
$highlightedCode = $hl->highlight(html_entity_decode($code, ENT_QUOTES,'UTF-8'));
$smarty->assign('highlightedCode', $highlightedCode);
}
}
// Sort Out Languages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment